
Command: set_markdown_html_root
The set_markdown_html_root
command is used to set the root path for the HTML directory where subsequent calls to convert Markdown documents to HTML will be stored. This directory must contain a "Themes" folder with the CSS styles and themes used for the conversion. Failing to use this command before calling Markdown to HTML conversion functions may cause those functions to fail due to the inability to locate the themes folder.
Parameters:
Parameter name | Type | Description |
---|---|---|
path | string | The full path of the HTML folder. |
Return value:
No return value.
Example:
string root = select_directory("Choose the root directory for HTML");
if ( root == "" ) then
return "Canceled";
end if
set_markdown_html_root(root);
Use this command when you want to specify the root directory for storing HTML files generated from Markdown.
References: