You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+link="xxx":url-a,/yyy/:url-b,/zzz/gi:url-c – mix everything up
Open questions
How to escape ", :, ;, and /? → Use JavaScript syntax
Should " and ' be allowed? → No, use JSON syntax
Maybe /class=".*(my-class).*"/ could link my-class only (as in the group). This could be useful for linkin the tag name of li in <li class="list-item"> but not within list-item. Background: Look ahead/behind in JavaScript’s RegExp are not supported well and hard to read/write. Using a group could be much more easy.
→ This is not optimal yet as it results in long lines. Maybe another solution could be better.
The text was updated successfully, but these errors were encountered:
New feature
Allow links in code blocks. This is useful when there are definitions elsewhere.
Specifications
Result:
The following syntax should be valid:
+link="xxx":url
– linkxxx
tourl
+link="xxx":url-a,"yyy":url-b
– link multiple strings+link=/xxx/:url
– search for RegExp+link=/xxx/g:url
– allow modifiers+link=/xxx/:url-a,/yyy/:url-b
– allow multiple RegExp+link="xxx":url-a,/yyy/:url-b,/zzz/gi:url-c
– mix everything upOpen questions
"
,:
,;
, and/
? → Use JavaScript syntax"
and'
be allowed? → No, use JSON syntax/class=".*(my-class).*"/
could linkmy-class
only (as in the group). This could be useful for linkin the tag name ofli
in<li class="list-item">
but not withinlist-item
. Background: Look ahead/behind in JavaScript’s RegExp are not supported well and hard to read/write. Using a group could be much more easy.→ This is not optimal yet as it results in long lines. Maybe another solution could be better.
The text was updated successfully, but these errors were encountered: