Code

constructor(content: String, language: String?, showLineNumbers: Boolean = true, highlight: Boolean = true, focusedLines: Range? = null, callouts: Map<Int, String> = emptyMap(), caption: InlineContent? = null, referenceId: String? = null)

Parameters

content

code content

language

optional syntax language

showLineNumbers

whether to show line numbers

highlight

whether to apply syntax highlighting

focusedLines

range of lines to focus on (1-based). No lines are focused if null

callouts

callout contents associated with line numbers (1-based)

caption

optional caption

referenceId

optional ID for cross-referencing via a com.quarkdown.core.ast.quarkdown.reference.CrossReference