contao / docs

Contao Documentation
https://docs.contao.org
Other
31 stars 142 forks source link

Documented new HSTS feature #1309

Closed Toflar closed 5 months ago

Toflar commented 5 months ago

Fixes https://github.com/contao/docs/issues/1299.

Unfortunately, the short code seems to create a block element so it creates an additional <p> element and duplicates the styling:

Bildschirmfoto 2024-02-02 um 17 28 47

Any way to fix this? /cc @fritzmg

fritzmg commented 5 months ago

Hm, which Hugo version are you using?

Toflar commented 5 months ago

hugo v0.117 - just updated to 0.122, no difference.

fritzmg commented 5 months ago

Not sure why this happens. While newer Hugo versions are supposed to have better handling regarding the automatic wrapping of shortcode contents, nothing worked to prevent this - and it does not seem to make much sense anyway. May be some one on the forum can shed some light on it: https://discourse.gohugo.io/t/shortcode-without-markdown-nested-in-shortcode-with-markdown-is-wrapped-with-p/48080

fritzmg commented 5 months ago

It's fixed now :)