klyn.code.markdown.MarkdownCodeBlock.range
property
public readonly property range as SourceRange
Description

Line range of the fenced block in the enclosing Markdown document.

Returns

SourceRange of the fenced block.

Example
import klyn.code.ast
import klyn.code.markdown

b = MarkdownCodeBlock("klyn", "return 1", SourceRange(4, 0, 6, 0))
assert b.range.startLine == 4