xianmin / hugo-theme-jane

A readable & concise theme for Hugo
https://xianmin.github.io/hugo-theme-jane/
MIT License
921 stars 284 forks source link

#305 Use hugo v0.60 or later, bug fix for shortcodes #306

Closed MrBenWang closed 4 years ago

MrBenWang commented 4 years ago

Use hugo v0.60 or later, bug fix for shortcodes.

It's because after version 0.60, hugo changed the defaultMarkdownHandler from blackfriday to goldmark.

305 使用 hugo v0.60 后的版本,shortcodes 的 bug fix.

是由于 0.60 版本后,hugo 更换了默认的 defaultMarkdownHandler ,从 blackfriday 改为 goldmark.

MrBenWang commented 4 years ago

Note: that the jane.scss_48b060fe05b0a273d182ef83c0605941.content and jane.scss_48b060fe05b0a273d182ef83c0605941.json of themes\jane\resources\_gen\assets\scss\sass\ are manually modified by me, not automatically generated by tools.

注意:其中 themes\jane\resources\_gen\assets\scss\sass\jane.scss_48b060fe05b0a273d182ef83c0605941.contentjane.scss_48b060fe05b0a273d182ef83c0605941.json 我是手动修改,并非通过工具自动生成。

shaform commented 4 years ago

It seems that some problems still exist due to the auto generated <pre><code>. The problem is also described in https://github.com/gohugoio/hugo/issues/6553.

xianmin commented 4 years ago

@MrBenWang Thanks for your PR! :smile: