Merge pull request #276 from ekliot/main

Make aliased wikilink highlighting consistent
This commit is contained in:
lambtho
2023-09-08 09:44:03 +00:00
committed by GitHub
3 changed files with 13 additions and 11 deletions

View File

@@ -499,10 +499,7 @@ groups:
- `tkBrackets` : the brackets surrounding the link title
- `tkHighlight` : ==highlighted== text (non-standard markdown)
- `tkTag` : well, tags
- `tkAliasedLink` : link with alias
- `tkHighlightedAliasedLink` : link with alias in `tkAliasedLink`
- `tkLinkAlias` : body of the link (left part of `[[aaa|bbb]]`)
- `tkLinkBody` : alias of the link (right part of `[[aaa|bbb]]`)
- `tkAliasedLink` : the concealed part of the link (left part of `[[aaa|bbb]]`)
`tkHighlight`, has nothing to do with links but I added it anyway, since I like
highlighting text when taking notes.
@@ -533,6 +530,12 @@ You can assign colors to the new syntax groups in your `init.vim`:
hi tkTag ctermfg=175 guifg=#d3869B
<
NOTE: Users configuring the following highlight groups prior to 09/2023, be aware they are deprecated:
- `tkHighlightedAliasLink`: this syntax group is now covered by `tkHighlight`
- `tkLinkBody`: this syntax group is renamed to `tkAliasedLink`
- `tkAliasedLink`: this group used to cover the whole link, it is now equivalent to the former `tkLinkBody`
- `tkLinkAlias`: this rule is deprecated
================================================================================
Section 3: Usage *telekasten.usage*