diff options
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js index bc574c62..f7abdcb8 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -562,6 +562,11 @@ function transformMultiline(text, {parseAttributes, transformInline}) { ) { lineTag = ''; } + + // for sticky headings! + if (elementMatch) { + lineContent = lineContent.replace(/<h2/, `<h2 class="content-heading"`) + } } let pushString = indentString.repeat(indentThisLine); |