☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

xhtml

Table of contents

Description:

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:
└── markdown
    └── options
        └── xhtml
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
    }
  }
}
Open in a new tab