markdown-it-py
markdown-it-py copied to clipboard
Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
### Describe the bug When using auto linking (linkify) the generated output may contain unicode surrogates which can not be encoded in Python 3 without further action. AFIAK changed encode...
updates: - [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0) - [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4)
Closes https://github.com/executablebooks/markdown-it-py/issues/198 Improves performance. Deprecates: - `StateBase.srcCharCode` - Inputting codepoints as type `int` to `skipChars`, `skipCharsBack`, `isTerminatorChar`, `isLetter` and `isSpace`
i.e. round trip conversion md-tokens-md. This would be useful for example to act as a formatter, whereby the max-line length could be specified and other options like: - whether to...
### Context I'm writing a tool to parse markdown files and verify that links are valid. To be able to provide the most valuable, accurate feedback, I need to be...
### Describe the problem/need and solution **Problem / Idea** According to updated benchmark results (https://github.com/executablebooks/markdown-it-py/pull/196) mistletoe beat us. This is embarrassing. Haha, no, hats off to mistletoe authors! **Solution** The...
Replaces use of `StateBase.srcCharCode` with the more JS-esque `StateBase.srcCharCodeAt` that can return `None`. I didn't remove `StateBase.srcCharCode` for ease of migration because mdit-py-plugins use it. But did deprecate it. Happy...
### Describe the problem/need and solution Hi! I maintain some Executable Books packages in Fedora (MyST-Parser and whatever it depends on). As a downstream consumer I'd love to build the...
### Description / Summary I propose to allow the unmodified handling of link text during auto-linkification. Think something like this: ```python md.linkify.add("%", {"validate": message_regex, "normalize": normalize_message_sigil}) def normalize_message_sigil(obj, match): old_url...