PrependLinkRoot(bool) Method
Specifies if the LinkRoot setting must be used to rewrite root-relative links when rendering markdown. By default, root-relative links, which are links starting with a '/' are left untouched. When setting this value to true, the LinkRoot setting value is added before the link.
Namespace
Statiq.Markdown
Containing Type
RenderMarkdown

Syntax

[Obsolete("Use ~/ to prepend the link root instead. e.g. ~/foo/bar", false)]
public RenderMarkdown PrependLinkRoot(bool prependLinkRoot = false)

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
prependLinkRoot bool If set to true, the LinkRoot setting value is added before any root-relative link (eg. stating with a '/').

Return Value

Type Description
RenderMarkdown The current module instance.