lsdocs_plugin_sdk::links #
Resolving link URLs found in documents.
Relative URLs are resolved against the linking document's directory, or
against the source directory if they start with /, the same way by the
host and by every plugin.
enum UrlTarget #
Where a link points.
Trait implementations
variant External #
ExternalAnother site, or a non-file scheme such as mailto:.
variant Outside #
OutsideAbove the source directory.
variant Internal #
Internal A file in the site, by its path relative to the source directory
(None for the linking document itself), and an optional fragment.
field path #
path: The file's path, or None for the linking document.
field fragment #
fragment: The part after #, percent-decoded; None if absent or empty.
function resolve_url #
Resolves url, found in the document from.
function percent_decode #
Decodes %XX escapes; malformed escapes are kept as they are.