A. Configuring the Markdown parser

There are many “flavors” of Markdown. The flavor you use to write some of the ebook pages may differ from what is supported out of the box by the Markdown parser which is part of XMLmind Ebook Compiler. Fortunately, this Markdown parser[1] is highly configurable.

The Markdown parser may be configured by defining a system property called "ebookc.load.options" containing one or more load.markdown.XXX options. These options are all documented in Markdown support.

The "ebookc.load.options" system property is best defined in a customize.xxe configuration file. Example:

<property name="ebookc.load.options">
  load.markdown.renderer.RENDER_HEADER_ID true

  load.markdown.emoji true
  load.markdown.emoji.ATTR_IMAGE_SIZE 16
  load.markdown.emoji.ATTR_ALIGN ""
  load.markdown.emoji.USE_IMAGE_TYPE IMAGE_ONLY
  load.markdown.emoji.USE_SHORTCUT_TYPE ANY_GITHUB_PREFERRED
</property>

More information about the property configuration element and the customize.xxe configurations files in XMLmind XML Editor - Configuration and Deployment.


[1] Implemented using the flexmark-java software component.