| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
flexmark-java Docx-Renderer extension
Renders the parsed Markdown AST to docx format using the docx4j library.
See the DocxConverterCommonMark Sample for code and Customizing Docx Rendering for an overview and information on customizing the styles.
Pegdown version can be found in DocxConverterPegdown Sample
⚠️ Emoji extension with Java7 will not load GitHub provided images. Use Java8+ or do not set EmojiExtension.USE_SHORTCUT_TYPE to EmojiShortcutType.GITHUB or EmojiShortcutType.ANY_GITHUB_PREFERRED which causes GitHub provided images to be used.
Renders AST generated by flexmark-java parser. No special syntax is implemented by this extension.
artifact: flexmark-docx-converter
The following options are available:
Defined in DocxRenderer class:
Docx format requires a named color. Any color provided that does not match a named color will be converted to the closest named color.
When CODE_HIGHLIGHT_SHADING is set to "shade" then will use the closest named color taken from the SourceText shade fill color if available.
Element styles:
List Element Styles
Unordered lists use numbering list style named BulletList while ordered lists use NumberedList. If these are not present then default numbering style (id = 2) is used for unordered lists and default numbering style (id = 3) is used for ordered lists.
The following are equivalent to Renderer properties of the same name. Included in DocxRenderer for convenience.
For the TOC_INSTRUCTION string see Docx4j GettingStarted under the heading TOC Content Control
NOTE: Word does not handle inserted HTML very well. Any HTML not suppressed will be escaped: ie. it will render into the document as text. The exception is for the <br> tag which if enabled will be rendered as a line break.
Html rendering options available in DocxRenderer for convenience:
| Back | FazBrowse Home | New Git URL |