Converts a Markwdown string to an HTML buffer (encoded in UTF-8).
MyBuffer is Buffer
MyInitialString is string = "*Italic text*"
MyBuffer = MarkdownToHTML(MyInitialString)
Trace(MyBuffer)
// Display <em>Text in italics</em>
// Save to an HTML file
HTML_File is ANSI string = [
<html>
<head><meta charset="UTF-8"> </head>
<body>
]
HTML_File += CR + MarkdownToHTML(STC_MarkdownText) + "</body></html>"
fSaveText("C:\temp\myFile.html", HTML_File)
Syntax
<Result> = MarkdownToHTML(<Markdown string> , <CSS style>)
<Result>: Buffer
HTML buffer (encoded in UTF-8).
<Markdown string>: Character string
Markdown string.
<CSS style>: Boolean
- True: the returned value will contain the style necessary to ensure the text is displayed correctly (with the CSS rules that will be applied to HTML tags).
- False (default value): the returned value will not contain CSS styles.
Business / UI classification: Neutral code