From 13c70bcce020dd2768eb2ed10d724cdaa276326a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 15 Jan 2023 16:35:26 -0400 Subject: preserve h2 class when stickyalizing it --- src/upd8.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/upd8.js b/src/upd8.js index 920f9039..a793feb6 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -572,8 +572,14 @@ function transformMultiline(text, { } // for sticky headings! - if (elementMatch) { - lineContent = lineContent.replace(/

/g, (match, attributes) => { + const parsedAttributes = parseAttributes(attributes, {to}); + return `

`; + }); } } -- cgit 1.3.0-6-gf8a5