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

heading_ids

Table of contents

Description:

This key toggles whether CloudCannon will generate IDs for headings when converting Markdown to HTML.

Setting this key to true will automatically generate ID attributes for heading elements based on their text content.

By default, this key is false (i.e., IDs are not generated for headings).

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

In this example, we have configured Markdown to generate IDs for headings.

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