fix: allow hyphenate in url link (#481)

This commit is contained in:
Myriad-Dreamin 2024-07-30 18:47:57 +08:00 committed by GitHub
parent d2689a120e
commit 04de6a2806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View file

@ -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",

View file

@ -0,0 +1 @@
("https://github.com/Myriad-Dreamin/tinymist/tree/main/editors/vscode#symbol-view")[integrating]

View 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