Features of the preview

Per default the preview is on the right side of a vertical split screen. Using the configuration, the user can change the split to horizontal, and change the position of the preview.

The plugin uses AsciidoctorJ 2.x to render the preview.

Per default the plugin runs Asciidoctor in safe mode UNSAFE which is also the default when a user runs Asciidoctor from the command line. The user can change the behavior to other modes like SERVER and SECURE in the plugin’s settings. See section Running Asciidoctor securely in the Asciidoctor User Manual for more information about this feature.

When the user enters formulas using AsciiDoctor’s math support, the preview renders them using MathML. If the formula can’t be parsed by MathML, the preview shows an error popup.

When the user moves the cursor in the editor, the preview scrolls the text into the preview.

When the user clicks on text in the preview, the editor moves the cursor to the clicked text. This is accurate at block level, unfortunately not yet on line or character level.

When the user clicks on an external URL, the preview opens it in an external browser.

When the user clicks on a relative link within the project (usually a link:[] reference), the preview opens the referenced file in a new editor.

When the user right-clicks on an image, the editor shows a dialog to save the file to the local file system. For diagrams like PlantUML it offers to save the files as PNG or SVG. Windows and Linux users have a drop down menu for this. MacOS users need to type the extension for the target file name (.svg or .png)

The user can zoom in and out of the preview by holding Ctrl and scrolling the mouse wheel up or down. Clicking the middle mouse button whilst holding Ctrl resets the zoom to 100%.