-
✨ NEW: Add simple typographic replacements, thanks to @tsutsu3: This allows you to add the
typographer
option to the parser, to replace particular text constructs:(c)
,(C)
→ ©(tm)
,(TM)
→ ™(r)
,(R)
→ ®(p)
,(P)
→ §+-
→ ±...
→ …?....
→ ?..!....
→ !..????????
→ ???!!!!!
→ !!!,,,
→ ,--
→ &ndash---
→ &mdash
md = MarkdownIt() md.options["typographer"] = True
-
📚 DOCS: Improve documentation for CLI, thanks to @westurner
-
👌 IMPROVE: Use
re.sub()
instead ofre.subn()[0]
, thanks to @hukkinj1 -
🐛 FIX: An exception raised by having multiple blank lines at the end of some files
👌 IMPROVE: Add store_labels
option.
This allows for storage of original reference label in link/image token's metadata, which can be useful for renderers.
✨ NEW: Add anchors_plugin
for headers, which can produce:
<h1 id="title-string">Title String <a class="header-anchor" href="#title-string">¶</a></h1>
🐛 Fixed an undefined variable in the reference block.
🐛 Fixed an IndexError
in container_plugin
, when there is no newline on the closing tag line.
⬆️ UPGRADE: attrs -> v20
This is not breaking, since it only deprecates Python 3.4 (see CHANGELOG.rst)
deflist
anddollarmath
plugins (see plugins list).
- Added benchmarking tests and CI (see https://executablebooks.github.io/markdown-it-py/dev/bench/)
- Improved performance of computing ordinals (=> 10-15% parsing speed increase). Thanks to @sildar!
- Stopped empty lines at the end of the document, after certain list blocks, raising an exception (#36).
- Allow myst-role to accept names containing digits (0-9).
containers
plugin (see plugins list)
- Plugins and improved contributing section