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

attribute_elements.*

Table of contents

Description:

This key represents an individual element-specific attribute positioning configuration in the markdown.options.attribute_elements object.

The value can be none, right, space right, below, newline below, or right-of-prefix. This determines where attribute lists are positioned for the specified element type when converting HTML to Markdown.

This key only takes effect when attributes is enabled.

Appears in:
└── markdown
    └── options
        └── attribute_elements
            └── *
Type:
string
Allowed values:
none
right
space right
below
newline below
right-of-prefix
Examples:

In this example, we have configured attribute positioning for paragraph elements to place attributes on the right.

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