Closed tummychow closed 7 years ago
seems like a tough one, we'll probably just need to keep this open until someone comes up with a solution. thanks for letting us know!
Looks like the same issue in a slightly different context:
I'm on..
Can we get this reopened?
@molomby #142 is opened to track this issue. I updated the comment above to point to it.
Try this with the highlighting set to
bash
:The
if
in the dd command is interpreted as a conditional keyword, so now I guess the grammar is looking for the matchingfi
. As a result, the fenced block doesn't end at the second set of backticks (it thinks the backticks are a command substitution string). You can see GitHub's syntax highlighter is actually making the same mistake, since theif
is bolded, but the fenced block doesn't end up consuming this entire issue, so it's not quite as bad.Not sure if there's an easy solution to this problem. From what I know, dd's command syntax is quite specific, and doesn't allow for a space before the equals sign. Maybe that can be used to solve this issue (check for a space after
if
before interpreting it as a keyword`, but I wouldn't be surprised if that was insufficient.