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:

Parameter Type Description
section unknown The section to scroll to.

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