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

block

Table of contents

Description:

This key defines where attribute lists are positioned for block-level elements when converting HTML to Markdown.

The value can be none, right, space right, below, newline below, or right-of-prefix. This applies to all block-level elements unless overridden by element-specific configuration.

This key only takes effect when attributes is enabled.

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

In this example, we have configured block-level elements to place attributes below the element.

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