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 {
|
pub fn markdown(self) -> Self {
|
||||||
self
|
self
|
||||||
// Links
|
// Links
|
||||||
.with(TokenKind::String, r"\[[^\]]*\](\([^\)]*\))?")
|
.with(TokenKind::String, r"!?\[[^\]]*\](\([^\)]*\))?")
|
||||||
// Header
|
// Header
|
||||||
.with(TokenKind::Doc, r"^#+[[:space:]][^$]*$")
|
.with(TokenKind::Doc, r"^#+[[:space:]][^$]*$")
|
||||||
// List item
|
// List item
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue