Creates an instance of PageLinkParser
Plugin options
Page dictionary
TypeDoc logger
Converts the provided absolute URL to a URL relative to the current page's URL
Absolute URL to convert to a relative URL
URL to make the URL relative to
The converted URL
Handles the replacement of a page link tags
If the tag points at a page group, the page groups first page will be used as the link target. If the tab points at a page section, the first page of the first group in the section will be used as the link target. If no page or page group is found for the provided title, then the tag will not be replaced.
The entire matching page link tag
The text leading before the tag
The type of tag that was used (i.e. @page
or @pagelink
)
The text following the tag - this is used to find the page or page group by title
The string to replace the tag with
Writes the list of invalid page links to the console
If the PluginOptions.listInvalidPageLinks option is false, this method will not list any invalid page links.
Parses the Markdown text provided in the TypeDoc Markdown event, replacing page link tags with hyperlinks
If the PluginOptions.enablePageLinks option is false, this method will not replace the page links.
TypeDoc Markdown event
Configures the parser with the page currently being rendered
TypeDoc page event
Generated using TypeDoc
Parses Markdown text and replaces page link tags with hyperlinks to pages and page groups