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
Enabling both the footnotes and the superscript extensions causes the footnotes extension to stop working.
Environment
Commonmarker version 1.0.0.pre6
Ruby 3.1.3
Ubuntu 20.4
Reproduction code
require'bundler/inline'gemfile{gem'commonmarker','1.0.0.pre6'}markdown=<<~MARKDOWN Gimme footnote[^1] This is ^superscript^ [^1]: Here is the footnoteMARKDOWNextensions={footnotes: true,superscript: true}options={extension: extensions,render: {hardbreaks: false}}output=Commonmarker.to_htmlmarkdown,options: optionsputsoutput
Actual output
<p>
Gimme footnote[^1]
This is <sup>superscript</sup></p>
Expected output
(which can be observed by disabling the superscript extension in the code above)
<p>
Gimme footnote<supclass="footnote-ref"><ahref="#fn1" id="fnref1">1</a></sup>
This is <sup>superscript</sup></p><sectionclass="footnotes"><ol><liid="fn1"><p>Here is the footnote <ahref="#fnref1" class="footnote-backref">↩</a></p></li></ol></section>
code was prettified manually, for clarity
The text was updated successfully, but these errors were encountered:
Description
Enabling both the
footnotes
and thesuperscript
extensions causes the footnotes extension to stop working.Environment
Reproduction code
Actual output
Expected output
(which can be observed by disabling the superscript extension in the code above)
code was prettified manually, for clarity
The text was updated successfully, but these errors were encountered: