forked from pool/python-mistletoe
Accepting request 1144996 from devel:languages:python
- update to 1.3.0: * Add line numbers (`line_number` attribute) on all _block_ tokens during parsing (#188). * More thorough documentation and explanation of AST and tokens in the Developer's Guide (within #188). * `HtmlRenderer`: Option to skip HTML tokens parsing (#74 via #204). Just pass `process_html_tokens=False` to the renderer's constructor. * `LaTeXRenderer`: Add AMS packages for Math (#207). * `MarkdownRenderer`: Penultimate lines of multiline fragments being ignored (#201). * `MathJaxRenderer`: Output inline math (in: `$...$`) correctly (out: `\(...\)`) (#195). * Make local installation work again with pip 23.2 and above * `MarkdownRenderer`: Keep the original content spacing after the list marker (#196 via #197). * The old behavior can be enforced by passing `normalize_whitespace=True` to the renderer's constructor * Provided you create `ListItem`'s tokens directly via its constructor, you need to pass it a new parameter called `indentation` (number of spaces before the item marker): OBS-URL: https://build.opensuse.org/request/show/1144996 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mistletoe?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c0e21859267347ca686d1aacccf690cd0e52ed3c33e4455336fa30dbe697eeb2
|
|
||||||
size 118396
|
|
3
mistletoe-1.3.0.tar.gz
Normal file
3
mistletoe-1.3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7c5a81d97eadf09fc13b29e9d63518802e9f645237e018e1a3059c3f87d9e9d1
|
||||||
|
size 121653
|
@@ -1,3 +1,28 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 7 19:39:13 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.3.0:
|
||||||
|
* Add line numbers (`line_number` attribute) on all _block_
|
||||||
|
tokens during parsing (#188).
|
||||||
|
* More thorough documentation and explanation of AST and tokens
|
||||||
|
in the Developer's Guide (within #188).
|
||||||
|
* `HtmlRenderer`: Option to skip HTML tokens parsing (#74 via
|
||||||
|
#204). Just pass `process_html_tokens=False` to the
|
||||||
|
renderer's constructor.
|
||||||
|
* `LaTeXRenderer`: Add AMS packages for Math (#207).
|
||||||
|
* `MarkdownRenderer`: Penultimate lines of multiline fragments
|
||||||
|
being ignored (#201).
|
||||||
|
* `MathJaxRenderer`: Output inline math (in: `$...$`) correctly
|
||||||
|
(out: `\(...\)`) (#195).
|
||||||
|
* Make local installation work again with pip 23.2 and above
|
||||||
|
* `MarkdownRenderer`: Keep the original content spacing after
|
||||||
|
the list marker (#196 via #197).
|
||||||
|
* The old behavior can be enforced by passing
|
||||||
|
`normalize_whitespace=True` to the renderer's constructor
|
||||||
|
* Provided you create `ListItem`'s tokens directly via its
|
||||||
|
constructor, you need to pass it a new parameter called
|
||||||
|
`indentation` (number of spaces before the item marker):
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 14 09:57:00 UTC 2023 - Elisei Roca <eroca@mailbox.org>
|
Thu Dec 14 09:57:00 UTC 2023 - Elisei Roca <eroca@mailbox.org>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-mistletoe
|
# spec file for package python-mistletoe
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-mistletoe
|
Name: python-mistletoe
|
||||||
Version: 1.2.1
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Markdown parser in pure Python
|
Summary: A Markdown parser in pure Python
|
||||||
License: MIT
|
License: MIT
|
||||||
@@ -34,7 +34,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Recommends: python-Pygments
|
Recommends: python-Pygments
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user