ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a Markwdown string to an HTML buffer (encoded in UTF-8).
Example
MonBuffer is Buffer
MaChaîneInitiale is string = "*Texte en italique*"

MonBuffer = MarkdownToHTML(MaChaîneInitiale)
Trace(MonBuffer)
// Affiche <em>Texte en italique</em>
// Enregistrement dans un fichier HTML
Fichier_html is string ANSI = [
<html>
    <head><meta charset="UTF-8"> </head>
<body>
	]
Fichier_html += CR + MarkdownToHTML(LIB_LibelléMarkdown) + "</body></html>"
fSaveText("C:\temp\monFichier.html", Fichier_html)
Syntax
<Result> = MarkdownToHTML(<Markdown string> , <CSS style>)
<Result>: Buffer
Buffer in HTML format (UTF8 encoded).
<Markdown string>: Character string
Markdown string.
<CSS style>: Boolean
  • True: the value returned will contain the style required to ensure uniform rendering (by specifying the usual CSS browser presentation rules for HTML tags).
  • False (default): the returned value will not contain CSS styles.
Business / UI classification: Neutral code
Component: wd300mdl.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help