-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Describe the bug
context
Running mdformat on a Markdown file with a Hugo shortcode.
expectation
I expected mdformat to not break the shortcode.
bug
Instead mdformat is breaking the shortcode by escaping < to \<.
problem
This breaks the shortcode for Hugo users.
Relevant Hugo comment: #112 (comment)
Reproduce the bug
{{< youtube -dJolYw8tnk >}}That links to this YouTube video. mdformat corrects this to
{{\< youtube -dJolYw8tnk >}}List your environment
mdformat==0.7.16
mdformat-frontmatter==2.0.1
BartKeulen, PythonFZ, asraa, Ian2020 and ecbaldwin
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested