Skip to content

Html Generation Settings

Vladimir Schneider edited this page Sep 1, 2018 · 8 revisions

HTML customization settings are found in Markdown Navigator preferences in HTML Generator section.

Screen Shot Settings Html

  • Add <!DOCTYPE html>, when selected adds tag to top of document. ⚠️ Katex scripts require this tag or they will not work.

  • Add page header, when selected adds page box with file name

  • Embed Stylesheet URL Content, when selected embeds stylesheets instead of linking to them

  • Embed Images, when selected embeds images as base64 encoded data

  • Embed Remote Images, when selected embeds remote image URLs, otherwise only local images

  • Add query suffix to URI when image changes, when selected adds an integer query param which is incremented when an image file in the project changes. Needed by JavaFX WebView browser to overcome it caching an image and not updating it when the file changes.

  • Text editor boxes let you insert custom HTML code in a particular point in the generated HTML. The location of the insertion is shown in the form to make it easier to see where the text will be inserted in the HTML document.

The customization process and effort will depend on whether you are customizing Swing HTMLEditorKit Preview tab or the new JavaFX WebView Preview tab.