zzossig / hugo-theme-zzo

Make a blog with hugo zzo theme!
https://themes.gohugo.io//theme/hugo-theme-zzo/en/
MIT License
739 stars 260 forks source link

feat: render markdown hooks in shortcodes #465

Open GerkinDev opened 2 years ago

GerkinDev commented 2 years ago

Since v0.62, hugo added .Page.RenderString function. This function has a huge advantage over markdownify: it triggers markdown hooks, that can be used to customize how some elements are rendered (such as links).

This PR use the new method in shortcodes.