You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, as far as I can tell shfmt doesn't have any issues formatting lines starting with $ (But it can't parse mdsf format <PATH_TO_FILE> which is rather ironic).
$ cp foo bar
$ touch foo
$ date
Tue Apr 2 23:54:37 CEST 2024
Becomes
$ cp foo bar
$ touch foo
$ date
Tue Apr 2 23:54:37 CEST 2024
From a ux perspective I would personally expect any block tagged with shell / sh to be formatted using the shell formatter, whether it has a shebang or not. But I can definitely see your point.
shfmt is made for formatting script, definitely.
But shell block quote in markdown is not ONLY about that
Yes, this would be valid
But the alternative syntax used in many markdown linters is this one
So this
Please note this one is sometimes refered as
console
So your script will try to format things that are not always script.
The text was updated successfully, but these errors were encountered: