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
nonerightspace rightbelownewline belowright-of-prefixExamples
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"
}
}
}
}