Replies: 3 comments 4 replies
-
Does it need to be paragraph styles, i.e. if the items need to be styled could inline styles work? 1. [This is the first item in a numbered lists.]{custom-style="AlertTok"}
2. [This is the second item.]{custom-style="AnnotationTok"}
3. [And this is the third item.]{custom-style="AnnotationTok"} |
Beta Was this translation helpful? Give feedback.
-
1. ::: {custom-style="Numbered 1"}
This is the first item in a numbered lists.
:::
2. ::: {custom-style="Numbered"}
This is the second item.
:::
3. ::: {custom-style="Numbered"}
And this is the third item.
::: I tried to convert this into HTML, native and DOCX, and it seems to work. Unfortunately, you need to repeat the Div with custom-style on every list item. |
Beta Was this translation helpful? Give feedback.
-
@ptram — I wrote a quick lua filter that takes bullet or ordered lists and wraps them in divs (it builds the AST @massifrg described). So with this command & markdown:
* foo foo
* bar bar
Text.
1. foo foo
2. bar bar You get this in Word:The filter:https://github.com/iandol/dotpandoc/blob/master/filters/enstyle-list.lua |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to convert Markdown to DOCX. By default, it looks like all lists (ordered or unordered) have the "Compact" paragraph style applied.
I would like to apply my own custom styles. In the source code I have things like:
Unfortunately, all the lists have still the "Compact" paragraph style assigned, with list properties for continued or restarting numbering.
Is there a way to make my custom styles override the default one?
Beta Was this translation helpful? Give feedback.
All reactions