Skip to content

Commit 48b4175

Browse files
chore: update WikiLink color description
1 parent b3efd64 commit 48b4175

4 files changed

Lines changed: 38 additions & 18 deletions

File tree

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -810,16 +810,20 @@ require('render-markdown').setup({
810810
wiki = {
811811
-- Turn on / off WikiLink rendering.
812812
enabled = true,
813+
-- Inlined with content.
813814
icon = '󱗖 ',
815+
-- Custom processing for WikiLink body to show.
814816
body = function()
815817
return nil
816818
end,
819+
-- Applies to the inlined icon.
817820
highlight = 'RenderMarkdownWikiLink',
821+
-- Highlight for item associated with the WikiLink.
818822
scope_highlight = nil,
819823
},
820824
-- Define custom destination patterns so icons can quickly inform you of what a link
821-
-- contains. Applies to 'inline_link', 'uri_autolink', and wikilink nodes. When multiple
822-
-- patterns match a link the one with the longer pattern is used.
825+
-- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes.
826+
-- When multiple patterns match a link the one with the longer pattern is used.
823827
-- The key is for healthcheck and to allow users to change its values, value type below.
824828
-- | pattern | matched against the destination text |
825829
-- | icon | gets inlined before the link text |
@@ -1598,16 +1602,20 @@ require('render-markdown').setup({
15981602
wiki = {
15991603
-- Turn on / off WikiLink rendering.
16001604
enabled = true,
1605+
-- Inlined with content.
16011606
icon = '󱗖 ',
1607+
-- Custom processing for WikiLink body to show.
16021608
body = function()
16031609
return nil
16041610
end,
1611+
-- Applies to the inlined icon.
16051612
highlight = 'RenderMarkdownWikiLink',
1613+
-- Highlight for item associated with the WikiLink.
16061614
scope_highlight = nil,
16071615
},
16081616
-- Define custom destination patterns so icons can quickly inform you of what a link
1609-
-- contains. Applies to 'inline_link', 'uri_autolink', and wikilink nodes. When multiple
1610-
-- patterns match a link the one with the longer pattern is used.
1617+
-- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes.
1618+
-- When multiple patterns match a link the one with the longer pattern is used.
16111619
-- The key is for healthcheck and to allow users to change its values, value type below.
16121620
-- | pattern | matched against the destination text |
16131621
-- | icon | gets inlined before the link text |
@@ -1740,9 +1748,9 @@ The table below shows all the highlight groups with their default link
17401748
| RenderMarkdownMath | @markup.math | Latex lines |
17411749
| RenderMarkdownIndent | Whitespace | Indent icon |
17421750
| RenderMarkdownHtmlComment | @comment | HTML comment inline text |
1743-
| RenderMarkdownLink | @markup.link.label.markdown_inline | Link icons |
1744-
| RenderMarkdownLinkTitle | @markup.link.markdown_inline | Link titles |
1745-
| RenderMarkdownWikiLink | RenderMarkdownLink | WikiLink icon & text |
1751+
| RenderMarkdownLink | @markup.link.label.markdown_inline | Link icon |
1752+
| RenderMarkdownLinkTitle | @markup.link.markdown_inline | Link title |
1753+
| RenderMarkdownWikiLink | RenderMarkdownLink | WikiLink icon |
17461754
| RenderMarkdownUnchecked | @markup.list.unchecked | Unchecked checkbox |
17471755
| RenderMarkdownChecked | @markup.list.checked | Checked checkbox |
17481756
| RenderMarkdownTodo | @markup.raw | Todo custom checkbox |

doc/render-markdown.txt

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For NVIM v0.11.6 Last change: 2026 February 02
1+
*render-markdown.txt* For NVIM v0.11.6 Last change: 2026 February 03
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -876,16 +876,20 @@ Default Configuration ~
876876
wiki = {
877877
-- Turn on / off WikiLink rendering.
878878
enabled = true,
879+
-- Inlined with content.
879880
icon = '󱗖 ',
881+
-- Custom processing for WikiLink body to show.
880882
body = function()
881883
return nil
882884
end,
885+
-- Applies to the inlined icon.
883886
highlight = 'RenderMarkdownWikiLink',
887+
-- Highlight for item associated with the WikiLink.
884888
scope_highlight = nil,
885889
},
886890
-- Define custom destination patterns so icons can quickly inform you of what a link
887-
-- contains. Applies to 'inline_link', 'uri_autolink', and wikilink nodes. When multiple
888-
-- patterns match a link the one with the longer pattern is used.
891+
-- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes.
892+
-- When multiple patterns match a link the one with the longer pattern is used.
889893
-- The key is for healthcheck and to allow users to change its values, value type below.
890894
-- | pattern | matched against the destination text |
891895
-- | icon | gets inlined before the link text |
@@ -1644,16 +1648,20 @@ Link Configuration ~
16441648
wiki = {
16451649
-- Turn on / off WikiLink rendering.
16461650
enabled = true,
1651+
-- Inlined with content.
16471652
icon = '󱗖 ',
1653+
-- Custom processing for WikiLink body to show.
16481654
body = function()
16491655
return nil
16501656
end,
1657+
-- Applies to the inlined icon.
16511658
highlight = 'RenderMarkdownWikiLink',
1659+
-- Highlight for item associated with the WikiLink.
16521660
scope_highlight = nil,
16531661
},
16541662
-- Define custom destination patterns so icons can quickly inform you of what a link
1655-
-- contains. Applies to 'inline_link', 'uri_autolink', and wikilink nodes. When multiple
1656-
-- patterns match a link the one with the longer pattern is used.
1663+
-- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes.
1664+
-- When multiple patterns match a link the one with the longer pattern is used.
16571665
-- The key is for healthcheck and to allow users to change its values, value type below.
16581666
-- | pattern | matched against the destination text |
16591667
-- | icon | gets inlined before the link text |
@@ -1830,11 +1838,11 @@ The table below shows all the highlight groups with their default link
18301838
RenderMarkdownHtmlComment @comment HTML comment inline
18311839
text
18321840

1833-
RenderMarkdownLink @markup.link.label.markdown_inline Link icons
1841+
RenderMarkdownLink @markup.link.label.markdown_inline Link icon
18341842

1835-
RenderMarkdownLinkTitle @markup.link.markdown_inline Link titles
1843+
RenderMarkdownLinkTitle @markup.link.markdown_inline Link title
18361844

1837-
RenderMarkdownWikiLink RenderMarkdownLink WikiLink icon & text
1845+
RenderMarkdownWikiLink RenderMarkdownLink WikiLink icon
18381846

18391847
RenderMarkdownUnchecked @markup.list.unchecked Unchecked checkbox
18401848

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local state = require('render-markdown.state')
66
local M = {}
77

88
---@private
9-
M.version = '8.11.6'
9+
M.version = '8.11.7'
1010

1111
function M.check()
1212
M.start('versions')

lua/render-markdown/settings.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,16 +1305,20 @@ M.link.default = {
13051305
wiki = {
13061306
-- Turn on / off WikiLink rendering.
13071307
enabled = true,
1308+
-- Inlined with content.
13081309
icon = '󱗖 ',
1310+
-- Custom processing for WikiLink body to show.
13091311
body = function()
13101312
return nil
13111313
end,
1314+
-- Applies to the inlined icon.
13121315
highlight = 'RenderMarkdownWikiLink',
1316+
-- Highlight for item associated with the WikiLink.
13131317
scope_highlight = nil,
13141318
},
13151319
-- Define custom destination patterns so icons can quickly inform you of what a link
1316-
-- contains. Applies to 'inline_link', 'uri_autolink', and wikilink nodes. When multiple
1317-
-- patterns match a link the one with the longer pattern is used.
1320+
-- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes.
1321+
-- When multiple patterns match a link the one with the longer pattern is used.
13181322
-- The key is for healthcheck and to allow users to change its values, value type below.
13191323
-- | pattern | matched against the destination text |
13201324
-- | icon | gets inlined before the link text |

0 commit comments

Comments
 (0)