./textproc/py-markdown, XHTML generator using a simple markup

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.7, Package name: py312-markdown-3.7, Maintainer: pkgsrc-users

Markdown is a text-to-HTML conversion tool for web writers. Markdown
allows you to write using an easy-to-read, easy-to-write plain text
format, then convert it to structurally valid XHTML (or HTML).

This package provides a Python implementation.


Required to run:
[devel/py-setuptools] [lang/python310]

Master sites:

Filesize: 348.717 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-17 15:05:34 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-markdown: update to 3.6.

## [3.6] -- 2024-03-14

### Changed

#### Refactor TOC Sanitation

* All postprocessors are now run on heading content.
* Footnote references are now stripped from heading content. Fixes #660.
* A more robust `striptags` is provided to convert headings to plain text.
  Unlike, the `markupsafe` implementation, HTML entities are not unescaped.
* The plain text `name`, rich `html`, and unescaped raw `data-toc-label` are
  saved to `toc_tokens`, allowing users to access the full rich text content of
  the headings directly from `toc_tokens`.
* The value of `data-toc-label` is sanitized separate from heading content
  before being written to `name`. This fixes a bug which allowed markup through
  in certain circumstances. To access the raw unsanitized data, retrieve the
  value from `token['data-toc-label']` directly.
* An `html.unescape` call is made just prior to calling `slugify` so that
  `slugify` only operates on Unicode characters. Note that `html.unescape` is
  not run on `name`, `html`, or `data-toc-label`.
* The functions `get_name` and `stashedHTML2text` defined in the `toc` extension
  are both **deprecated**. Instead, third party extensions should use some
  combination of the new functions `run_postprocessors`, `render_inner_html` and
  `striptags`.

### Fixed

* Include `scripts/*.py` in the generated source tarballs (#1430).
* Ensure lines after heading in loose list are properly detabbed (#1443).
* Give smarty tree processor higher priority than toc (#1440).
* Permit carets (`^`) and square brackets (`]`) but explicitly exclude
  backslashes (`\`) from abbreviations (#1444).
* In attribute lists (`attr_list`, `fenced_code`), quoted attribute values are
  now allowed to contain curly braces (`}`) (#1414).
   2024-01-13 08:10:27 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-markdown: updated to 3.5.2

3.5.2

Fixed

* Fix type annotations for `convertFile` - it accepts only bytes-based buffers.
 Also remove legacy checks from Python 2
* Remove legacy import needed only in Python 2
* Fix typo that left the attribute `AdmonitionProcessor.content_indent` unset

* Fix edge-case crash in `InlineProcessor` with `AtomicString`
* Fix edge-case crash in `codehilite` with an empty `code` tag
* Improve and expand type annotations in the code base
* Fix handling of bogus comments
   2023-11-06 14:48:14 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-markdown: update to 3.5.1.

## [3.5.1] -- 2023-10-31

### Fixed

* Fix a performance problem with HTML extraction where large HTML input could
  trigger quadratic line counting behavior (#1392).
* Improve and expand type annotations in the code base (#1394).
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
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.
   2023-10-10 18:05:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-markdown: updated to 3.5

3.5

Added

Add permalink_leading configuration option to the toc extension

A new boolean option permalink_leading controls the position of the permanent \ 
link anchors generated with permalink. Setting permalink_leading to True will \ 
cause the links to be inserted at the start of the header, before any other \ 
header content. The default behavior for permalink is to append permanent links \ 
to the header, placing them after all other header content.

Changed

Add support for cPython version 3.12 (and PyPy 3.10) and drop support for Python \ 
version 3.7
Refactor changelog to use the format defined at https://keepachangelog.com/.
Update the list of empty HTML tags
Add customizable TOC title class to TOC extension
Add API documentation of the code base which is generated by mkdocstrings
   2023-08-01 14:27:47 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-markdown: updated to 3.4.4

3.4.4
Bug fixes
   2023-04-03 14:06:01 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-markdown: updated to 3.4.3

version 3.4.3 (a bug-fix release).

* Restore console script.

version 3.4.2 (a bug-fix release).

* Improve standalone * and _ parsing.
* Consider `<html>` HTML tag a block-level element.
* Officially support Python 3.11.
* Switch from `setup.py` to `pyproject.toml`.
   2023-03-29 11:34:15 by Thomas Klausner | Files touched by this commit (96)
Log message:
*: use PYTHON_VERSION instead of _PYTHON_VERSION