Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-mistune
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-mistune: updated to 3.4.0 3.4.0 * Add Python 3.15 support and include it in the CI test matrix. * Require Python 3.10 or later. * Parse inline links with an opening-bracket stack and replace per-syntax failure caches with source-local delimiter scanning. * Share one inline nesting budget across images, links, emphasis, and plugins. Expose ``InlineParser.max_nested_level``; the older ``max_emphasis_depth`` and ``max_image_depth`` settings configure the same limit. * Preserve later valid syntax when a candidate fails or reaches a nesting limit, rather than treating the remaining input as unparsed text. * Enforce CommonMark's 999-character reference label limit, balanced and bounded destination parentheses, and link title constraints. * Improve performance for unclosed inline HTML, unmatched code delimiters, deeply nested images, and repeated text fragments. * Recognize inline HTML comments permitted by CommonMark 0.31.2. * Parse links containing full reference images without treating the image's reference label as a nested link. * Preserve reference definitions parsed inside multi-paragraph footnotes. * Accept definition-list markers indented by up to three spaces. * Prefer longer registered abbreviation matches over shorter prefixes. * Require at least one digit in ordered list continuation markers. * Add Markdown rendering for strikethrough, mark, and insert plugins. * Preserve escaped pipes in table code spans, literal trailing heading hashes, meaningful code span edge spaces, and leading blank lines in Markdown output. * Keep images whose alt text matches their URL from becoming autolinks. * Preserve non-line-break separator characters in rendered lists and hard line breaks in tight ReST list items. * Document per-document renderer context and correct the custom Markdown renderer example. * Preserve literal backslashes, image introducers, HTML delimiters and entity prefixes when rendering Markdown for a round trip. * Only recognize task list markers in a list item's leading paragraph, preserving literal markers in headings. * Bound the global convenience-parser cache and avoid retaining caller-owned renderers and plugin objects. * Add public HTML output helpers for raw HTML, attributes, and URL policy. * Share collision-safe default heading IDs between both TOC APIs. * Add explicit start-character hints for custom inline rules; unhinted custom rules now use the correctness-first regular-expression scanner. * Consolidate adversarial parser growth tests and document the security model.
py-mistune: updated to 3.3.4 3.3.4 * Harden inline parsing against deeply nested and adversarial link, image, emphasis, formatting, math, and reference inputs. * Improve performance for repeated link suffixes, dense emphasis, unclosed formatting markers, inline spoilers, and adjacent ruby tokens. * Refactor the inline parser into dedicated emphasis and link modules. * Escape literal ``*``/``_`` emphasis markers in the Markdown renderer so round-tripping escaped text does not re-introduce emphasis.
py-mistune: updated to 3.3.2 Version 3.3.2 * Fix Python 3.8 import compatibility in the inline parser. * Fix mypy compatibility for list parsing on Python 3.8 and 3.9+. Version 3.3.1 * Fix ``abbr`` plugin compatibility with escaped inline text. * Normalize included Markdown line endings before parsing directives. Version 3.3.0 * Improve CommonMark compatibility and parser performance. * Add command line entrypoint with UTF-8 output. * Support display and backtick math. * Render plugin list and table nodes in Markdown renderer. * Escape leading block markers in Markdown renderer. * Fix RST renderer for block quotes nested in lists. * Avoid generated heading ID collisions in TOC. * Harden URL, image, figure, and include directive handling. * Fix quadratic scans in inline links, reference links, and formatting markers. * Fix math escaping, currency pattern matching, and cross-line matching.
Fix PLIST after py-setuptools update; bump depends and revision
python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs.
py-mistune: updated to 3.0.1 Version 3.0.1 ------------- * Add ``py.typed`` for mypy * Add ``tests``, ``docs`` for sdist * Support ``renderer="ast"`` for rendering AST Version 3.0.0 ------------- * Do not strip leading unicode spaces like emsp * Ensure new line at end of the text Version 3.0.0rc5 ---------------- * Fix fenced directives * Fix inline link parser * Fix block math plugin for multiple lines * Fix empty list item for markdown renderer Version 3.0.0rc4 ---------------- * Fix plugin footnotes when there is no newline at the end * Move safe HTML entities to HTMLRenderer * Redesign directives parsing * Add Image and Figure directive Version 3.0.0rc3 ---------------- * Render inline math with ``\(`` and ``\)`` * Added ``RSTRenderer``, and ``MarkdownRenderer`` * Fix ``toc_hook`` method * **Breaking change**, rename ``RstDirective`` to ``RSTDirective`` Version 3.0.0rc2 ---------------- * Add **spoiler** plugin * Add ``collapse`` option for ``TableOfContents`` directive * **Breaking change** on directive design, added fenced directive Version 3.0.0rc1 ---------------- * Add **superscript** plugin Version 3.0.0a3 --------------- * Fix ruby plugin * Change toc parameter ``depth`` to ``level`` Version 3.0.0a2 --------------- * Escape block code in HTMLRenderer * Fix parsing links Version 3.0.0a1 --------------- This is the first release of v3. Features included: * redesigned mistune * plugins * directives
py-mistune: update to 2.0.5. pkgsrc note: the CVE listed below was only for 2.x, so pkgsrc is not affected. 2.0.5 Improve on parsing list. Make it possible to customize list regex. ref #331 2.0.4 Fix url plugin in <a> tag Fix * formatting 2.0.3 Fix table plugin Security fix for CVE-2022-34749 2.0.2 cape_url via #295 2.0.1 Fix XSS for image link syntax. 2.0.0 First release of Mistune v2. 2.0.0rc1 In this release, we have a Security Fix for harmful links. 2.0.0alpha1 This is the first release of v2. An alpha version for users to have a preview of the new mistune.
py-mistune: updated to 0.8.4 Version 0.8.4 Support an escaped pipe char in a table cell. Fix ordered and unordered list. Fix spaces between = in HTML tags Add max_recursive_depth for list and blockquote. Fix fences code block.
Rev1: build C-extension
Added textproc/py-mistune version 0.7.3 The fastest markdown parser in pure Python with renderer features, inspired by marked. Features: * Pure Python. Tested in Python 2.6+, Python 3.3+ and PyPy. * Very Fast. It is the fastest in all pure Python markdown parsers. * More Features. Table, footnotes, autolink, fenced code etc.