This key defines where attribute lists are positioned for inline 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 inline elements unless overridden by element-specific configuration.
This key only takes effect when attributes is enabled.
Appears in
└── markdown
└── options
└── attribute_elements
└── inlineType
string
Allowed values
nonerightspace rightbelownewline belowright-of-prefixExamples
In this example, we have configured inline elements to place attributes on the right.
Copied to clipboard
markdown:
engine: commonmark
options:
attributes: true
attribute_elements:
inline: right{
"markdown": {
"engine": "commonmark",
"options": {
"attributes": true,
"attribute_elements": {
"inline": "right"
}
}
}
}