Syna is not fully compatible with Hugo 0.60.0 new markdown render
See original GitHub issueIs this a BUG REPORT or FEATURE REQUEST?: bug
What happened: Hugo 0.60.0 / 0.60.1 changed blackfriday markdown render to Goldmark
What you expected to happen: All the content is rendered
How to reproduce it (as minimally and precisely as possible): Build the proyect with hugo > 0.60.0
Anything else we need to know?: To workaround this until some changes are made:
Add to config.toml
[markup]
defaultMarkdownHandler = "blackfriday"
Environment:
- Syna Theme version: 0.15.1 or master
- Hugo version: 0.60.1
- Others: Arch Linux
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Remove unnecessary markdownify calls #646 - okkur/syna
Refactor Suggestion Explanation: We changed markdown ... Syna is not fully compatible with Hugo 0.60.0 new markdown render #638.
Read more >Raw HTML getting omitted in 0.60.0 - support - HUGO
When using hugo 0.60.0, raw HTML are now replaced with <!-- raw HTML omitted -->. Is there a way to not omitting them,...
Read more >Check compatibility between Hugo and Syna (#29) · Issues
Newer versions of Hugo seem to be incompatible with Syna. We need to check which Syna version works with the most recent version...
Read more >Hugo Markdown Reference
Hugo is a static site generator that converts Markdown files to a website. ... uses the Goldmark Markdown processor which is fully CommonMark-compliant....
Read more >Home page of hugo academic is gone - RStudio Community
Reason: late last year, Hugo switched the default markdown renderer from BlackFriday to goldmark. See https://gohugo.io/news/0.60.0-relnotes/.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
unsafe
allow RAW html with GoldMark, and markdownify is converting the markdown in html before GoldMark tries to render it (or at least that is what I think)For example in the item.html fragment the “Title”
{{- .Params.title | markdownify -}}
and all the other Params work, but the content{{- .self.Content | markdownify -}}
is what is omited/changed forRaw HTML omitted
because I have an unsorted list that markdonify converts in html which GoldMark doesn’t allow by default. The other calls to markdonwnify are simple sentences that doesn’t convert to any html code, just plain words.If I change
{{- .self.Content | markdownify -}}
to just{{- .self.Content -}}
it work’s without needingunsafe
I don’t know if is better explained in this bug
I’m not sure why unsafe helps. Anyways, creating a PR for it right away.