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
└── blockType
string
Allowed values
nonerightspace rightbelownewline belowright-of-prefixExamples
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"
}
}
}
}