
Function: markdown2html
Convert a document in Markdown format to HTML using themes. You select themes to be used for styling the HTML to be a good looking HTML representation of the Markdown document. The function uses the html root path specified in the "set_markdown_html_path" command to locate the themes folder with the CSS for selected theme.
Parameters:
Parameter name | Type | Description |
---|---|---|
SourceFile | string | Full path to the source Markdown file |
Style | string | <style>, <codestyle> Pick one style and one codestyle from the table below separat by comma. See example. |
Output file | string | resulting html full path |
Return value: Type TEXT : Status of the operation. If Output file is not specified, the returnvalue contains the HTML tekst.
Example:
string root = select_directory("Velg root katalog for HTML");
set_markdown_html_root ( root ) ;
string res = markdown2html (sf, "solarized-dark,monokai", df);
Markdown styles:
Style Name | Type | Description |
---|---|---|
black | style | |
foghorn | style | |
github | style | |
solarized-light | style | |
solarized-dark | style | |
dirt | style | |
ghostwriter | style | |
witex | style | |
agate | codestyle | |
dark | codestyle | |
monokai_sublime | codestyle | |
androidstudio | codestyle | |
darkula | codestyle | |
obsidian | codestyle | |
arta | codestyle | |
default | codestyle | |
paraiso | codestyle | |
ascetic | codestyle | |
docco | codestyle | |
pojoaque | codestyle | |
atelier-cave | codestyle | |
far | codestyle | |
railscasts | codestyle | |
atelier-dune | codestyle | |
foundation | codestyle | |
rainbow | codestyle | |
atelier-estuary | codestyle | |
github | codestyle | |
school_book | codestyle | |
atelier-forest | codestyle | |
github-gist | codestyle | |
solarized_dark | codestyle | |
atelier-heath | codestyle | |
googlecode | codestyle | |
solarized_light | codestyle | |
atelier-lakeside | codestyle | |
grayscale | codestyle | |
sunburst | codestyle | |
atelier-plateau | codestyle | |
hopscotch | codestyle | |
tomorrow | codestyle | |
atelier-savanna | codestyle | |
hybrid | codestyle | |
tomorrow-night | codestyle | |
atelier-seaside | codestyle | |
idea | codestyle | |
tomorrow-night-blue | codestyle | |
atelier-sulphurpool | codestyle | |
ir_black | codestyle | |
tomorrow-night-bright | codestyle | |
brown_paper | codestyle | |
kimbie | codestyle | |
tomorrow-night-eighties | codestyle | |
brown_papersq | codestyle | |
magula | codestyle | |
vs | codestyle | |
codepen-embed | codestyle | |
mono-blue | codestyle | |
xcode | codestyle | |
color-brewer | codestyle | |
monokai | codestyle | |
zenburn | codestyle |