Skip to content

✨ NEW: Add fancy ordered lists - #181

Open
Boulea7 wants to merge 1 commit into
executablebooks:masterfrom
Boulea7:feat/fancy-ordered-lists
Open

Boulea7 wants to merge 1 commit into
executablebooks:masterfrom
Boulea7:feat/fancy-ordered-lists

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 2, 2026

Copy link
Copy Markdown

This ports alphabetic, Roman and generic ordered-list markers from Moxio's current plugin. It supports the nested numbering in #34 and preserves ordinary list tokens. Ordinal indicators such as 1º. and multi-letter numbering such as AA) are opt-in. Reference implementation

The port covers the empty-item and end-of-input cases reported in #35. It matches all 40 examples from the reference suite and preserves HTML and tokens for all 74 list examples in CommonMark 0.31.2. The new tests passed on markdown-it-py 4.3 and 3.0, with the native GFM checkbox test applicable to 4.3. The documentation build, mypy and pre-commit passed.

The plugin emits standard HTML list types. MyST-Parser 5.2’s Docutils renderer currently reads a separate style attribute for list numbering.

AI assistance was used for the port and testing.

Closes #34.

Port the current Moxio list markers to markdown-it-py. Preserve ordinary list tokens and support nested alphabetic and Roman numbering, generic markers and optional ordinals and multi-letter markers.

Refs executablebooks#34.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add fancy list support

1 participant