question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syna is not fully compatible with Hugo 0.60.0 new markdown render

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Marzalcommented, Dec 3, 2019

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 for Raw 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.

title = "Apuntes sobre Zero Waste"
...
+++
* Text
* ... 
* Another text

If I change {{- .self.Content | markdownify -}} to just {{- .self.Content -}} it work’s without needing unsafe

I don’t know if is better explained in this bug

1reaction
mpourismaielcommented, Dec 3, 2019

I’m not sure why unsafe helps. Anyways, creating a PR for it right away.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found