Package-level declarations

Types

Link copied to clipboard
data class CodePresenceProperty(val value: Boolean) : Property<Boolean>

If this property is present in com.quarkdown.core.ast.attributes.AstAttributes.thirdPartyPresenceProperties and its value is true, it means there is at least one code block in the AST. This is used to load the HighlightJS library in HTML rendering only if necessary.

Link copied to clipboard
data class MathPresenceProperty(val value: Boolean) : Property<Boolean>

If this property is present in com.quarkdown.core.ast.attributes.AstAttributes.thirdPartyPresenceProperties and its value is true, it means there is at least one math block or inline in the AST. This is used to load the KaTeX library in HTML rendering only if necessary.

Link copied to clipboard

If this property is present in com.quarkdown.core.ast.attributes.AstAttributes.thirdPartyPresenceProperties and its value is true, it means there is at least one Mermaid diagram in the AST. This is used to load the Mermaid library in HTML rendering only if necessary.

Properties

Link copied to clipboard

Whether there is at least one code block in the AST.

Link copied to clipboard

Whether there is at least one math block or inline in the AST.

Link copied to clipboard

Whether there is at least one Mermaid diagram in the AST.

Functions

Link copied to clipboard

Marks the presence of code blocks in the AST if at least one Code block is present in the document.

Link copied to clipboard

Marks the presence of math blocks or inlines in the AST if at least one math element is present in the document.

Link copied to clipboard

Marks the presence of Mermaid diagrams in the AST if at least one diagram is present in the document.