Skip to content

Commit

Permalink
Fix comment parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
henriklovhaug committed Sep 15, 2024
1 parent 079f689 commit 085819f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/md.pest
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ code_line = { NEWLINE ~ (c_line_char | WHITESPACE_S)* }
latex = { NEWLINE? ~ WHITESPACE_S* ~ !"\\" ~ "$"+ ~ WHITESPACE_S? ~ (latex_word | (NEWLINE ~ quote_prefix?))+ ~ "$"+ }
link = { NEWLINE? ~ WHITESPACE_S* ~ (link_line | wiki_link | inline_link_wrapper) }
link_line = _{ "[" ~ (link_word | NEWLINE)+ ~ "]" ~ "(" ~ link_data+ ~ ")" }
inline_link_wrapper = _{ "<" ~ inline_link ~ ">" }
inline_link_wrapper = _{ !comment ~ "<" ~ inline_link ~ ">" }
wiki_link = _{ ("[[" ~ wiki_link_alone+ ~ "]]") | ("[[" ~ wiki_link_data+ ~ "|" ~ wiki_link_word+ ~ "]]") }
normal = _{ word+ }
o_list_counter = { digit+ ~ ". " }
Expand Down

0 comments on commit 085819f

Please sign in to comment.