mdox icon indicating copy to clipboard operation
mdox copied to clipboard

Hugo shortcode identation

Open titpetric opened this issue 1 year ago • 1 comments

When using hugo shortcodes, a particular shortcode may be used as:

{{< warning success >}}
<some text here>
{{< /warning >}}

When using mdox fmt, the snippet above gets it's leading and trailing spacing stripped, making an unnecessary change to:

{{< warning success >}} <some text here> {{< /warning >}}.

Ideally the shortcodes would be treated in the same way as fenced code blocks, leaving the leading/exiting whitespace as is.

Hugo shortcodes: https://gohugo.io/content-management/shortcodes/

titpetric avatar Mar 22 '24 14:03 titpetric

👍🏽 help wanted!

bwplotka avatar Jul 03 '24 11:07 bwplotka