Class MarkdownPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.gui.MarkdownPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public final class MarkdownPanel extends JPanel implements Scrollable
Read-only markdown renderer that walks the Commonmark AST and emits a tree of native Swing components — one component per block. Each block uses the widget best suited to it: JTextPane for prose (so inline code can carry a monospaced font run), RSyntaxTextArea for fenced code, MigLayout grids for tables and lists, a bordered JPanel for blockquotes.

Selection caveat: text selection cannot span block boundaries — you can select within a paragraph or within a code block, but not from one block into the next.

See Also: