This key toggles whether CloudCannon will use XHTML-style closing for single tags when converting Markdown to HTML.
Setting this key to true will use / to close single tags (e.g., <br /> instead of <br>).
By default, this key is false (i.e., single tags are not closed with /).
Appears in
Type
boolean
Default value
false
Examples
In this example, we have configured Markdown to use XHTML-style closing for single tags.
Copied to clipboard
markdown:
engine: commonmark
options:
xhtml: true{
"markdown": {
"engine": "commonmark",
"options": {
"xhtml": true
}
}
}