ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts a Markwdown string to an HTML buffer (encoded in UTF-8).
Example
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
Component: wd290mdl.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/09/2022

Send a report | Local help