diff options
Diffstat (limited to 'src/util/replacer.js')
-rw-r--r-- | src/util/replacer.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js index ac23bf46..028cd3ba 100644 --- a/src/util/replacer.js +++ b/src/util/replacer.js @@ -382,10 +382,7 @@ export function postprocessHeadings(inputNodes) { parseFrom = match.index + match[0].length; const attributes = html.attributes(parseAttributes(match[1])); - - attributes.set('class', - (attributes.get('class') ?? []) - .concat(['content-heading'])); + attributes.push('class', 'content-heading'); // We're only modifying the opening tag here. The remaining content, // including the closing tag, will be pushed as-is. |