You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the site themes render lists via myst-to-react (basic.tsx list handler), which only emits <ol start id className> — so HTML site builds (e.g. book-dp1 with template: book-theme) still display decimal markers.
What's needed
In myst-to-react's list component:
Map node.style to the <ol type> attribute (lower-roman → i, upper-alpha → A, …) — browsers then render roman/alpha markers natively.
Upstream PR to jupyter-book/myst-theme (right long-term home; small, self-contained change).
For book-dp1 in the meantime: a custom/forked book-theme build, or site CSS keyed off ol[type] once the type attribute lands (the attribute alone covers the i. rendering; only the parens wrapper needs CSS).
Until this lands, fancy lists in HTML site builds show decimal markers but with correct ordering/start — a strict improvement over the previous plain-paragraph rendering.
Follow-up to #49 / PR #50.
PR #50 makes the parser and exporters handle Pandoc-style fancy list markers (
a.,iv.,(i)), and the site AST now carries the metadata:{ "type": "list", "ordered": true, "start": 1, "style": "lower-roman", "delimiter": "parens" }However, the site themes render lists via
myst-to-react(basic.tsxlisthandler), which only emits<ol start id className>— so HTML site builds (e.g. book-dp1 withtemplate: book-theme) still display decimal markers.What's needed
In
myst-to-react'slistcomponent:node.styleto the<ol type>attribute (lower-roman→i,upper-alpha→A, …) — browsers then render roman/alpha markers natively.node.delimiter(paren/parens), add a class (e.g.delimiter-parens) plus theme CSS using::marker/ CSS counters to render(i)instead ofi.— matching the static-HTML hook added in PR Fancy ordered lists: alphabetic, roman, and parenthesized markers #50'smyst-to-html.Options
book-themebuild, or site CSS keyed offol[type]once the type attribute lands (the attribute alone covers thei.rendering; only the parens wrapper needs CSS).Until this lands, fancy lists in HTML site builds show decimal markers but with correct ordering/start — a strict improvement over the previous plain-paragraph rendering.