fix(lexer): old anchor is only used in moduleName

This commit is contained in:
Primrose 2025-09-24 22:19:37 +08:00
parent c4d59d3236
commit 326c7b681c
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 10 additions and 11 deletions

View file

@ -12,7 +12,7 @@ bold ::= '__' text_no_newline '__'
monospace ::= '@' text_content '@'
link ::= module_link | hyperlink | markdown_link
module_link ::= '"' module_name ( '#' anchor_name )? '"'
module_link ::= '"' module_name ( ('#' | '\#') anchor_name )? '"'
hyperlink ::= '<' url ( ' ' link_text )? '>'
markdown_link ::= '[' link_text '](' ( url | module_link ) ')'