Vcl.Markdown.TMDViewer.LoadFromURI
Prototype
procedure LoadFromURI(const aURI :string; aClearHistory :boolean = FALSE); overload;
procedure LoadFromURI(const aURI :string; aEncoding :TEncoding; aClearHistory :boolean = FALSE); overload;
procedure LoadFromURI(const aURI, aResourcePath :string; aEncoding :TEncoding; aClearHistory :boolean = FALSE); overload;
Description
Opens the file specified by aURI. This can be a local file, a remote file or a URL with HTTP(S) or FTP(S) scheme. aURI can contain an anchor. In this case, the document is loaded and the viewer automatically scrolls to it.
aResourcePath is the path where the resources are located if not fully qualified in the Markdown script or if their location is not relative to the document folder.
Loaded documents are kept in memory for quick access when navigating between them. Set aClearHistory to true to clear the history list and save memory.
aEncoding specifies the document encoding if it is not UTF8.
OnNavigate is fired after this method is called.
Examples
LoadFromURI('C:\MyFolder\MyFile.md#my_anchor');
LoadFromURI('https://mydomain.com/doc/#my_anchor');