Skip to content

Commit

Permalink
Miscounting lines with markdown backtick section
Browse files Browse the repository at this point in the history
When we have a program like:
```
# test
  ~~~
  npm
  ~~~
  \aa5
  ~~~
  npm ~~~
  \aa8
```
we get the warnings like:
```
.../aa.md:6: warning: Found unknown command '\aa5'
.../aa.md:10: warning: Found unknown command '\aa8'
```
instead of:
```
.../aa.md:5: warning: Found unknown command '\aa5'
.../aa.md:8: warning: Found unknown command '\aa8'
```

This has been corrected.

Note: in the example tildes are used so the backticks show up in the github issue as well.
  • Loading branch information
albert-github committed Oct 22, 2020
1 parent 33341fe commit 53d1bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ void Markdown::writeFencedCodeBlock(const char *data,const char *lng,
m_out.addStr("{"+lang+"}");
}
addStrEscapeUtf8Nbsp(data+blockStart,blockEnd-blockStart);
m_out.addStr("\n");
m_out.addStr(" ");
m_out.addStr("@endcode");
}

Expand Down

0 comments on commit 53d1bbc

Please sign in to comment.