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

attributes

Table of contents

Description:

This key toggles whether CloudCannon will save element attributes in Markdown format instead of converting them to HTML when converting HTML to Markdown.

Setting this key to true will preserve element attributes in Markdown format (using attribute lists) rather than converting them to HTML.

By default, this key is false (i.e., element attributes are converted to HTML).

Appears in:
└── markdown
    └── options
        └── attributes
Type:
boolean
Default value:
false
Examples:

In this example, we have configured Markdown to save element attributes in Markdown format.

Copied to clipboard
markdown:
  engine: commonmark
  options:
    attributes: true
{
  "markdown": {
    "engine": "commonmark",
    "options": {
      "attributes": true
    }
  }
}
Open in a new tab