Skip to content
Navigation

Primary

Code and data

Code, diagrams, formulas and component references kept next to the text.

Component Purpose
Code A code block with highlighting, copying and line wrapping
Code from a file A fragment of a project file that updates together with the file
Diagram A Mermaid diagram stored next to the text
Diagram gallery All 22 Mermaid diagram types with a live result and the source
Math formula A formula written in TeX
Isolated HTML Checked HTML markup in a separate frame
Component reference Attributes, events, methods and CSS variables from the component manifest

How to choose

Write a short piece of code right in the text as a code block. When the piece comes from a project file, include it as code from a file: it updates together with the file. Show relations and processes as a diagram and formulas in TeX notation. A component reference collects attributes, events and methods from the manifest, so the parameter table does not need to be kept by hand.