Open Marco5dev opened 1 year ago
I had the same issue which is related to purgecss. Purgecss seems to drop the < code > styling when there is no code block in the index.html file. it is weird, but I messed around with it and adding "< code >< /code >" somewhere in my index.html fixed it on all pages. (drop the spaces)
Looks like PurgeCSS (PostCSS) runs before Hugo transforms Markdown to HTML.
Adding 'code'
to the safelist
section of purgecss
should fix this
The styling of the
don't appear after building the site with npm run build in github workflows and my environment
the the style of
and i know I intentionally put two just now