Skip to content

MarkdownPreviewRenderer.getInternalLinkHref method

MarkdownPreviewRenderer › getInternalLinkHref

Unofficial

Gets the internal-link href for an element, if it belongs to this renderer.

Signature:

getInternalLinkHref(el: HTMLElement): null | string

Parameters:

Parameter Type Description
el HTMLElement The element to read the href from.

Returns: null | stringThe href, or null if not an internal link belonging to this renderer.