Rendering the preview
The central class and method to create AsciiDoc from HTML is
It is implemented as a singleton.
It registers custom Asciidoctor extensions that are needed for improve the preview.
It also enables custom extensions in the
There are three different preview implementations:
AsciiDocJCEFHtmlPanel(for JCEF, an embedded Chrome).
The JavaFX preview is the current default preview. It is available when the user is running 64bit JDK with JavaFX (the default JDK for JetBrains IDE). Starting with release 2020.2 JetBrains doesn’t ship JavaFX prebundled. User can install the JavaFX for plugins on 64bit JREs to re-enable the JavaFX preview.
The JCEF preview is available from IntelliJ 2020.2 onwards when running the IDE with JetBrains Runtime.
When the user interacts with the JavaFX or JCEF preview (for example clicks on a text or a link), there is a bridge