feat: a list label takes the alignment the file gives it

Word's w:lvlJc / ODF's fo:text-align on the level: set right, the label grows
into the margin instead of over the text it labels. That is what the built-in
Roman numberings use, and a fixture's numerals collided without it.
This commit is contained in:
Steffen Becker committed 2026-08-08 23:09:58 +00:00
1 parent ee1b0dd180
commit 3154a9b7a2
10 files changed
+113 -23

No files matched your search

+7
View File
@@ -510,6 +510,13 @@
color: var(--marker-color, inherit);
}
/* A label set against the far end of the hanging indent grows into the margin instead
of into the text — what keeps Word's Roman numerals off the words they label. */
.paper .tiptap :is(ol, ul)[data-marker-align="right"] > li > :is(p, h1, h2, h3, h4, h5)::before {
left: auto;
right: calc(100% + 0.635cm);
}
/* Ordered numbering, keyed by data-eff-list-style — the effective numbering
orderedList.ts's plugin resolves per <ol> from its attr + ancestor chain. The
undecorated <ol> is the plain decimal fallback and must come first. */