You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('should render footnote with custom options',()=>{
878
+
constinput=[
879
+
'This is a statement[^1] with a citation.',
880
+
'',
881
+
'[^1]: This is a footnote for the citation.'
882
+
].join('\n')
883
+
884
+
assert.equal(
885
+
asHtml(
886
+
<Markdown
887
+
children={input}
888
+
remarkPlugins={[gfm]}
889
+
remarkRehypeOptions={{clobberPrefix: 'main-'}}
890
+
/>
891
+
),
892
+
'<p>This is a statement<sup><a href="#main-fn-1" id="main-fnref-1" data-footnote-ref="true" aria-describedby="footnote-label">1</a></sup> with a citation.</p>\n<section data-footnotes="true" class="footnotes"><h2 id="footnote-label" class="sr-only">Footnotes</h2>\n<ol>\n<li id="main-fn-1">\n<p>This is a footnote for the citation. <a href="#main-fnref-1" data-footnote-backref="true" class="data-footnote-backref" aria-label="Back to content">↩</a></p>\n</li>\n</ol>\n</section>'
893
+
)
894
+
})
895
+
877
896
test('should support definitions with funky keys',()=>{
878
897
constinput=
879
898
'[][__proto__] and [][constructor]\n\n[__proto__]: a\n[constructor]: b'
0 commit comments