Commit Graph

10 Commits

Author SHA256 Message Date
Ana Guerrero
9e3080d3cc Accepting request 1128266 from devel:languages:python
- Update to version 3.0.0:
  * drop python 3.7 support
  * Update from upstream markdown-it 12.2.0 to 13.0.0
    - A key change is the addition of a new Token type, text_special,
      which is used to represent HTML entities and backslash escaped
      characters.
    - This ensures that (core) typographic transformation rules are not
      incorrectly applied to these texts.
    - The final core rule is now the new text_join rule, which joins
      adjacent text/text_special tokens, and so no text_special tokens
      should be present in the final token stream.
    - Any custom typographic rules should be inserted before text_join.
    - A new linkify rule has also been added to the inline chain, which
      will linkify full URLs (e.g. https://example.com), and fixes
      collision of emphasis and linkifier (so
      http://example.org/foo._bar_-_baz is now a single link, not
      emphasized).
    - Emails and fuzzy links are not affected by this.
  * REFACTOR: Replace most character code use with strings
    - The use of StateBase.srcCharCode is deprecated (with
      backward-compatibility), and all core uses are replaced by
      StateBase.src.
    - Conversion of source string characters to an integer
      representing the Unicode character is prevalent in the upstream
      JavaScript implementation, to improve performance. However, it
      is unnecessary in Python and leads to harder to read code and
      performance deprecations (during the conversion in the StateBase
      initialisation).
  * Centralise indented code block tests
    - For CommonMark, the presence of indented code blocks prevent any
      other block element from having an indent of greater than 4
      spaces.
    - Certain Markdown flavors and derivatives, such as mdx and djot,
      disable these code blocks though, since it is more common to use
      code fences and/or arbitrary indenting is desirable.
    - Previously, disabling code blocks did not remove the indent
      limitation, since most block elements had the 3 space limitation
      hard-coded.
    - This change centralised the logic of applying this limitation
      (in StateBlock.is_code_block), and only applies it when indented
      code blocks are enabled.
  * Maintenance changes
    - Strict type annotation checking has been applied to the whole
      code base, ruff is now used for linting, and fuzzing tests have
      been added to the CI, to integrate with Google OSS-Fuzz testing,
      thanks to @DavidKorczynski.

OBS-URL: https://build.opensuse.org/request/show/1128266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-markdown-it-py?expand=0&rev=5
2023-11-23 20:38:32 +00:00
f62bbd1b1b - Update to version 3.0.0:
* drop python 3.7 support
  * Update from upstream markdown-it 12.2.0 to 13.0.0
    - A key change is the addition of a new Token type, text_special,
      which is used to represent HTML entities and backslash escaped
      characters.
    - This ensures that (core) typographic transformation rules are not
      incorrectly applied to these texts.
    - The final core rule is now the new text_join rule, which joins
      adjacent text/text_special tokens, and so no text_special tokens
      should be present in the final token stream.
    - Any custom typographic rules should be inserted before text_join.
    - A new linkify rule has also been added to the inline chain, which
      will linkify full URLs (e.g. https://example.com), and fixes
      collision of emphasis and linkifier (so
      http://example.org/foo._bar_-_baz is now a single link, not
      emphasized).
    - Emails and fuzzy links are not affected by this.
  * REFACTOR: Replace most character code use with strings
    - The use of StateBase.srcCharCode is deprecated (with
      backward-compatibility), and all core uses are replaced by
      StateBase.src.
    - Conversion of source string characters to an integer
      representing the Unicode character is prevalent in the upstream
      JavaScript implementation, to improve performance. However, it
      is unnecessary in Python and leads to harder to read code and
      performance deprecations (during the conversion in the StateBase
      initialisation).
  * Centralise indented code block tests
    - For CommonMark, the presence of indented code blocks prevent any

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=9
2023-11-23 07:28:03 +00:00
Dominique Leuenberger
2ece467a95 Accepting request 1085071 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1085071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-markdown-it-py?expand=0&rev=4
2023-05-09 11:06:44 +00:00
81f7cadb74 Accepting request 1085065 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085065
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=7
2023-05-05 12:13:45 +00:00
Dominique Leuenberger
caa8af55b7 Accepting request 1070245 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1070245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-markdown-it-py?expand=0&rev=3
2023-03-09 16:45:27 +00:00
612d05a593 Accepting request 1069649 from home:sebix:branches:devel:languages:python
- update to version 2.2.0:
 - What's Changed:
  - UPGRADE: Allow linkify-it-py v2
  - FIX: CVE-2023-26303, fix boo#1208974
  - FIX: CLI crash on non-utf8 character
  - DOCS: Add section about markdown renderer
  - Update benchmark pkg versions

OBS-URL: https://build.opensuse.org/request/show/1069649
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=5
2023-03-08 17:40:36 +00:00
Dominique Leuenberger
3df916acd0 Accepting request 1001474 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1001474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-markdown-it-py?expand=0&rev=2
2022-09-07 09:06:02 +00:00
3a3c15350c Accepting request 1001217 from home:eroca:python
Cleanup requirements, tests, files section and comments

OBS-URL: https://build.opensuse.org/request/show/1001217
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=3
2022-09-06 13:14:52 +00:00
Dominique Leuenberger
0aab222a86 Accepting request 973588 from devel:languages:python
Necessary for building xonsh documentation.

OBS-URL: https://build.opensuse.org/request/show/973588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-markdown-it-py?expand=0&rev=1
2022-04-29 22:45:11 +00:00
61de617993 Accepting request 972837 from home:sebix
please forward to factory

OBS-URL: https://build.opensuse.org/request/show/972837
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-markdown-it-py?expand=0&rev=1
2022-04-28 08:01:18 +00:00