Closed 13rac1 closed 3 years ago
The fix in #65 enables Goldmark to handle references preceded by an exclamation point, but drops the character itself. This test: https://github.com/yuin/goldmark/blob/9e0189df270cb443c204b51e89e2b0749b98370c/extension/_test/footnote.txt#L53-L68
Should be:
5 //- - - - - - - - -// test![^1] [^1]: footnote //- - - - - - - - -// <p>test!<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p> <section class="footnotes" role="doc-endnotes"> <hr> <ol> <li id="fn:1" role="doc-endnote"> <p>footnote <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p> </li> </ol> </section> //= = = = = = = = = = = = = = = = = = = = = = = =//
What version of goldmark are you using? :
HEAD
What version of Go are you using? :
1.15.6
What operating system and processor architecture are you using? :
Ubuntu 20.04 on AMD64
What did you do? :
test![^1]
What did you expect to see? :
<p>test!<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
What did you see instead? :
<p>test<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?:
Not needed.
Thanks! I wasn't sure of the best implementation, this works for me
Summary
The fix in #65 enables Goldmark to handle references preceded by an exclamation point, but drops the character itself. This test: https://github.com/yuin/goldmark/blob/9e0189df270cb443c204b51e89e2b0749b98370c/extension/_test/footnote.txt#L53-L68
Should be:
Questions
HEAD
1.15.6
Ubuntu 20.04 on AMD64
test![^1]
Not needed.