Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo shortcode identation #155

Open
titpetric opened this issue Mar 22, 2024 · 1 comment
Open

Hugo shortcode identation #155

titpetric opened this issue Mar 22, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@titpetric
Copy link

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/

@bwplotka
Copy link
Owner

bwplotka commented Jul 3, 2024

👍🏽 help wanted!

@bwplotka bwplotka added the help wanted Extra attention is needed label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants