Skip to content
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 anymore #54

Open
nathanlesage opened this issue Oct 14, 2023 · 1 comment
Open

Footnotes not working anymore #54

nathanlesage opened this issue Oct 14, 2023 · 1 comment
Assignees

Comments

@nathanlesage
Copy link
Contributor

Heya!

I noticed a bug recently in the Blog plugin: I don't exactly know when or why it happened, but as of recently, footnotes are no longer properly parsed. I did not change the syntax and double-checked for eventual syntax errors, but it appears the Markdown parser doesn't like footnotes anymore. This behavior is visible both when outputting post.content_html | raw on the page as well as in the preview field in the backend.

Interestingly, this did work in the past. And even more so, since the blog plugin "caches" the rendered HTML in the content_html variable, the old posts with footnotes still work. To give you an example:

  • A recent post I published a few days ago. You can search for [^1] to discover that the markup is not rendered. This post lets me assume this bug has been there at least since July.
  • This is the last post which properly parsed footnotes, from June 30th.

Current versions:

  • WinterCMS v1.2.3
  • Blog Plugin v2.0.2
@LukeTowers
Copy link
Member

This is likely due to the recent change in the library used to parse the markdown, @bennothommo do you have any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants