wangchucheng / hugo-eureka

Eureka is a feature-rich and highly customizable Hugo theme.
https://www.wangchucheng.com/en/docs/hugo-eureka/
Apache License 2.0
920 stars 192 forks source link

Inline Code Backticks Not Rendering Pre HTML Tags Correctly #201

Closed c3rb3ru5d3d53c closed 2 years ago

c3rb3ru5d3d53c commented 2 years ago

Describe the bug

Markdown single backtick should create pre tags but they remain when the site is compiled.

To Reproduce

hugo new  site example
cd example/
git init
git submodule add https://github.com/wangchucheng/hugo-eureka.git themes/eureka
cd themes/eureka/
git  checkout v0.9.3
cd ../../
cp -r themes/eureka/exampleSite/config/ .
cp -r themes/eureka/exampleSite/content/ .
sed -i 's/^theme:/#theme:/' config/_default/config.yaml
echo "theme = 'eureka'" >> config.toml
hugo server

Once completed, visit http://127.0.0.1:1313/posts/markdown-syntax/.

image

Expected behavior

The inline code backticks should be creating a pre HTML tag.

Screenshots

image

Environment

Additional context

This affects multiple versions asides just v0.9.3.

wangchucheng commented 2 years ago

This style is the default style that tailwind typography renders markdown files. And you can customize it but it will need some extra work. For more details: https://tailwindcss.com/docs/typography-plugin