Skip to content

MarkdownPreviewRenderer.applyScrollSection method

MarkdownPreviewRenderer › applyScrollSection

Unofficial

Scrolls the preview so the given section is at the top.

Signature:

applyScrollSection(section: unknown): boolean | undefined

Parameters:

ParameterTypeDescription
sectionunknownThe section to scroll to.

Returns: boolean | undefinedtrue when the scroll was applied, otherwise undefined.