-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Comments
This is likely due to the recent change in the library used to parse the markdown, @bennothommo do you have any thoughts? |
Hey, is there maybe any update on this issue? |
Sorry @nathanlesage for missing this one. There is a Footnote Extension for Commonmark, the library we now use for Markdown parsing. I'll have to double-check if that's already being included or not - we may have to get the Blog plugin to automatically include it. |
That would be awesome, thank you! I would jump in if I had some free time, so I'm sorry about just nagging you... I hope it works well, and happy holidays to you, of course! |
@wintercms/maintainers I had an idea about perhaps making the following features of Commonmark controllable, perhaps as properties for the These features are available in However, if we were to make these available to be toggled in the I'm not sure if Do you guys have any thoughts on this? |
I think the idea of extra markdown features is interesting. |
I personally found the route via In general, it may make sense to do the following:
Then you would also have the benefit that the Markdown parser natively only needs to support whatever PHPLeague offers, and divert the efforts to support additional syntaxes to plugin developers. This might be great, also for supporting non-standard syntax (think citations and other goodies that Pandoc offers). |
@nathanlesage great thoughts. You are correct on Nevertheless, if we want the Markdown to be customisable, it cannot be used. Using the As for customising the Markdown parser - we have a wrapper around the PHP League's Commonmark library which can enable or disable features at will. If someone wanted to customise it even further, they can extend our parser. So the capability is already there. |
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:[^1]
to discover that the markup is not rendered. This post lets me assume this bug has been there at least since July.Current versions:
v1.2.3
v2.0.2
The text was updated successfully, but these errors were encountered: