Support "style for following paragraph" in docx writer #11034
Replies: 1 comment 3 replies
-
If you only need this for setting appropriate indentation after headings, you can simply modify the AFAIK, there isn't currently a way to make pandoc apply the "style for the following paragraph". In my view, implementing this would also be a bad idea. Say for example you have a CodeBlock following a Header. If the Header has a "style for the following paragraph" defined and pandoc were to take this into account, the CodeBlock will probably no longer look like a CodeBlock, and might instead just look like e.g. a regular paragraph. I can see how this would lead to unexpected results and confusion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In MS Word, when I define custom styles, I can also define the style of the paragraph that follows. This is helpful when defining headings and setting the appropriate indentation for body text.
However, when I convert markdown documents to docx, it does not apply those styles to text following headings, it applies First Paragraph and Body Text styles.
I can get around this using fenced divs and declaring custom styles, but I was wondering if it is possible to make pandoc apply the "styles for following paragraphs" automatically.
Beta Was this translation helpful? Give feedback.
All reactions