Better markdown parsing
This commit is contained in:
parent
a6d3df4288
commit
ae2f5f70f8
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ impl Highlighter {
|
|||
pub fn markdown(self) -> Self {
|
||||
self
|
||||
// Links
|
||||
.with(TokenKind::String, r"\[[^\]]*\](\([^\)]*\))?")
|
||||
.with(TokenKind::String, r"!?\[[^\]]*\](\([^\)]*\))?")
|
||||
// Header
|
||||
.with(TokenKind::Doc, r"^#+[[:space:]][^$]*$")
|
||||
// List item
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue