Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autocorrect/grammar/markdown.pest
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ meta_tags_val = @{ meta_tags_item ~ meta_tags_divider }
meta_tags_item = { (!(newline | ",") ~ (CJK | " " | ASCII_ALPHANUMERIC))* }
meta_tags_divider = { " "* ~ "," ~ " "* }
image_prefix = @{ "!" }
img = ${ image_prefix ~ link }
img = ${ image_prefix ~ (wikilinks | link) }

/// Matches link, e.g.: `[Hello](/hello)` or `[Hello]`
link = ${ link_string_wrap ~ href? }
Expand Down
2 changes: 2 additions & 0 deletions autocorrect/src/code/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ mod tests {
- [link链接](https://google.com/a/b/url不处理)
- Escher puzzle([链接](https://google.com))
- 一个[[Wikilinks测试]]示例
- 一个![[obsidian style img测试.png]]示例
请记住:对该仓库的贡献,应遵循我们的GitHub社区准则。
Expand Down Expand Up @@ -295,6 +296,7 @@ mod tests {
- [link 链接](https://google.com/a/b/url不处理)
- Escher puzzle([链接](https://google.com))
- 一个[[Wikilinks测试]]示例
- 一个![[obsidian style img测试.png]]示例
请记住:对该仓库的贡献,应遵循我们的 GitHub 社区准则。
Expand Down
Loading