mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-12-23 08:47:50 +00:00
fix: allow hyphenate in url link (#481)
This commit is contained in:
parent
d2689a120e
commit
04de6a2806
3 changed files with 6 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ const markup: textmate.Pattern = {
|
|||
// # - include: '#markupItalic'
|
||||
{
|
||||
name: "markup.underline.link.typst",
|
||||
match: /https?:\/\/[0-9a-zA-Z~\/%#&='',;\.\+\?]*/,
|
||||
match: /https?:\/\/[0-9a-zA-Z~\/%#&='',;\.\+\?\-]*/,
|
||||
},
|
||||
{
|
||||
include: "#markupMath",
|
||||
|
|
|
|||
1
syntaxes/textmate/tests/unit/bugs/link.typ
Normal file
1
syntaxes/textmate/tests/unit/bugs/link.typ
Normal file
|
|
@ -0,0 +1 @@
|
|||
("https://github.com/Myriad-Dreamin/tinymist/tree/main/editors/vscode#symbol-view")[integrating]
|
||||
4
syntaxes/textmate/tests/unit/bugs/link.typ.snap
Normal file
4
syntaxes/textmate/tests/unit/bugs/link.typ.snap
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
>("https://github.com/Myriad-Dreamin/tinymist/tree/main/editors/vscode#symbol-view")[integrating]
|
||||
#^^ source.typst
|
||||
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.typst markup.underline.link.typst
|
||||
# ^^^^^^^^^^^^^^^^ source.typst
|
||||
Loading…
Add table
Add a link
Reference in a new issue