-
-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Footnotes not working in Pico 2 #476
Comments
Pico uses Parsedown as Markdown parser (resp. Parsedown Extra, Parsedown's extension for Markdown Extra), so to put a long story short: Regarding Markdown, Pico does, what Parsedown does. Unfortunately there's a known issue with footnotes in Parsedown Extra since Parsedown 1.7, see erusev/parsedown-extra#118. Development of Parsedown Extra isn't very active, but there's a beta release of Parsedown Extra ( Some extra testing is required before deploying this as a stable bugfix release of Pico 2.0. Please keep in mind that this is a rather outstanding move; stability is very important to Pico, depending on a beta release of a library is bad. However, the fact that this is a long-living issue in Parsedown Extra (and that apparently not much is happening) is bad, too. Thus extra testing is required. Please test @ALL: There were pretty massive changes in Parsedown 1.8, there might be issues with existing Markdown files in the wild, so: Additional testing is highly appreciated! Not just related to footnotes, but all your Markdown files in general. Note about |
@ALL: There were pretty massive changes in Parsedown 1.8, there might be issues with existing Markdown files in the wild, so: Additional testing is highly appreciated! Not just related to footnotes, but all your Markdown files in general. |
First of all, thanks for releasing a new beta following my issue! I tried v2.0.5-beta.1 on my existing md files and this is what turned out:
I tried to read some of the comments on ongoing work on parsedown, but I think I understood 30% of what was being said. So, if I can be of any further help, please let me know since I can't get any further than this for now in understanding what might be some weak points to test. |
Greetings. I joined GitHub so I could post this. I noticed two problems with the generated footnotes. The first and most obvious is that they aren't rendering correctly. The second is that the anchor links aren't working properly. After reading through everything in this thread I upgraded Parsedown to the 0.8 beta and that fixed all of the footnote rendering issues for me just as it did for you guys, but the anchors still don't work. Taking a look at the generated HTML directly everything looks fine with the For example: I have Pico currently installed under Footnotes generate HTML id attributes like Your thoughts? |
Sounds like your theme creates a |
That fixed it! Thank you! |
Hello and happy 2019 to all!
I used new year's vacations to upgrade my blog from Pico 1 to Pico 2 via pre-bundled package and everything worked fine.
The only things I can't make work are footnotes, both in the remote Apache server and in my local one I use for testing.
The same .md file that gets parsed correctly under v1, under v2 outputs what looks like raw html
1. <p>custom footnote text  <a href="#fnref1:1" rev="footnote" class="footnote-backref">↩</a></p>
I checked, the new
config.yml
file tells Pico to use Markdown Extra; if it didn't, footnotes wouldn't appear at all and markers in the text would look like this^1
rather than this^1.I also copied over the
vendor
folder once again to make sure nothing was corrupted.Checking the html from the browser, the
<hr />
element is present and shows up correctly.Html for the above referenced note reads:
Am I missing something, what am I doing wrong?
Thank you very much
The text was updated successfully, but these errors were encountered: