MarkdownDocument.GetWebRootRelativePath

Returns a WebRoot Relative and slash normalized path for a file based on the current document's base file. Paths are converted to forward slashes as embeddable links. If path is empty or untitled path is returned as is.

public string GetWebRootRelativePath(string path,
	string basePath)

Parameters

path
Path to a file that you want to make relative to WebRoot

basePath
Path from which the WebRoot is discovered. If null uses the current document's folder as a base.


See also:

Class MarkdownDocument

© West Wind Technologies, 1996-2021 • Updated: 11/23/21
Comment or report problem with topic