|
1 | | -*render-markdown.txt* For NVIM v0.12.1 Last change: 2026 April 26 |
| 1 | +*render-markdown.txt* Improve viewing Markdown in Neovim |
| 2 | + For NVIM v0.12.2 Last change: 2026 May 07 |
2 | 3 |
|
3 | 4 | ============================================================================== |
4 | 5 | Table of Contents *render-markdown-table-of-contents* |
@@ -39,7 +40,7 @@ Table of Contents *render-markdown-table-of-contents* |
39 | 40 | ============================================================================== |
40 | 41 | 1. render-markdown.nvim *render-markdown-render-markdown.nvim* |
41 | 42 |
|
42 | | -Plugin to improve viewing Markdown files in Neovim |
| 43 | +Improve viewing Markdown in Neovim |
43 | 44 |
|
44 | 45 |
|
45 | 46 | ============================================================================== |
@@ -902,33 +903,35 @@ Default Configuration ~ |
902 | 903 | -- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes. |
903 | 904 | -- When multiple patterns match a link the one with the longer pattern is used. |
904 | 905 | -- The key is for healthcheck and to allow users to change its values, value type below. |
905 | | - -- | pattern | matched against the destination text | |
906 | 906 | -- | icon | gets inlined before the link text | |
| 907 | + -- | pattern | matched against the destination text | |
907 | 908 | -- | kind | optional determines how pattern is checked | |
908 | 909 | -- | | pattern | @see :h lua-patterns, is the default if not set | |
909 | 910 | -- | | suffix | @see :h vim.endswith() | |
| 911 | + -- | | url | similar to pattern with additional prefix checks | |
910 | 912 | -- | priority | optional used when multiple match, uses pattern length if empty | |
911 | 913 | -- | highlight | optional highlight for 'icon', uses fallback highlight if empty | |
| 914 | + -- stylua: ignore |
912 | 915 | custom = { |
913 | | - web = { pattern = '^http', icon = ' ' }, |
914 | | - apple = { pattern = 'apple%.com', icon = ' ' }, |
915 | | - discord = { pattern = 'discord%.com', icon = ' ' }, |
916 | | - github = { pattern = 'github%.com', icon = ' ' }, |
917 | | - gitlab = { pattern = 'gitlab%.com', icon = ' ' }, |
918 | | - google = { pattern = 'google%.com', icon = ' ' }, |
919 | | - hackernews = { pattern = 'ycombinator%.com', icon = ' ' }, |
920 | | - linkedin = { pattern = 'linkedin%.com', icon = ' ' }, |
921 | | - microsoft = { pattern = 'microsoft%.com', icon = ' ' }, |
922 | | - neovim = { pattern = 'neovim%.io', icon = ' ' }, |
923 | | - reddit = { pattern = 'reddit%.com', icon = ' ' }, |
924 | | - slack = { pattern = 'slack%.com', icon = ' ' }, |
925 | | - stackoverflow = { pattern = 'stackoverflow%.com', icon = ' ' }, |
926 | | - steam = { pattern = 'steampowered%.com', icon = ' ' }, |
927 | | - twitter = { pattern = 'twitter%.com', icon = ' ' }, |
928 | | - wikipedia = { pattern = 'wikipedia%.org', icon = ' ' }, |
929 | | - x = { pattern = 'x%.com', icon = ' ' }, |
930 | | - youtube = { pattern = 'youtube[^.]*%.com', icon = ' ' }, |
931 | | - youtube_short = { pattern = 'youtu%.be', icon = ' ' }, |
| 916 | + web = { icon = ' ', pattern = '^http' }, |
| 917 | + apple = { icon = ' ', pattern = 'apple%.com', kind = 'url' }, |
| 918 | + discord = { icon = ' ', pattern = 'discord%.com', kind = 'url' }, |
| 919 | + github = { icon = ' ', pattern = 'github%.com', kind = 'url' }, |
| 920 | + gitlab = { icon = ' ', pattern = 'gitlab%.com', kind = 'url' }, |
| 921 | + google = { icon = ' ', pattern = 'google%.com', kind = 'url' }, |
| 922 | + hackernews = { icon = ' ', pattern = 'ycombinator%.com', kind = 'url' }, |
| 923 | + linkedin = { icon = ' ', pattern = 'linkedin%.com', kind = 'url' }, |
| 924 | + microsoft = { icon = ' ', pattern = 'microsoft%.com', kind = 'url' }, |
| 925 | + neovim = { icon = ' ', pattern = 'neovim%.io', kind = 'url' }, |
| 926 | + reddit = { icon = ' ', pattern = 'reddit%.com', kind = 'url' }, |
| 927 | + slack = { icon = ' ', pattern = 'slack%.com', kind = 'url' }, |
| 928 | + stackoverflow = { icon = ' ', pattern = 'stackoverflow%.com', kind = 'url' }, |
| 929 | + steam = { icon = ' ', pattern = 'steampowered%.com', kind = 'url' }, |
| 930 | + twitter = { icon = ' ', pattern = 'twitter%.com', kind = 'url' }, |
| 931 | + wikipedia = { icon = ' ', pattern = 'wikipedia%.org', kind = 'url' }, |
| 932 | + x = { icon = ' ', pattern = 'x%.com', kind = 'url' }, |
| 933 | + youtube = { icon = ' ', pattern = 'youtube[^.]*%.com', kind = 'url' }, |
| 934 | + youtube_short = { icon = ' ', pattern = 'youtu%.be', kind = 'url' }, |
932 | 935 | }, |
933 | 936 | }, |
934 | 937 | sign = { |
@@ -1685,33 +1688,35 @@ Link Configuration ~ |
1685 | 1688 | -- contains. Applies to 'image', 'inline_link', 'uri_autolink', and WikiLink nodes. |
1686 | 1689 | -- When multiple patterns match a link the one with the longer pattern is used. |
1687 | 1690 | -- The key is for healthcheck and to allow users to change its values, value type below. |
1688 | | - -- | pattern | matched against the destination text | |
1689 | 1691 | -- | icon | gets inlined before the link text | |
| 1692 | + -- | pattern | matched against the destination text | |
1690 | 1693 | -- | kind | optional determines how pattern is checked | |
1691 | 1694 | -- | | pattern | @see :h lua-patterns, is the default if not set | |
1692 | 1695 | -- | | suffix | @see :h vim.endswith() | |
| 1696 | + -- | | url | similar to pattern with additional prefix checks | |
1693 | 1697 | -- | priority | optional used when multiple match, uses pattern length if empty | |
1694 | 1698 | -- | highlight | optional highlight for 'icon', uses fallback highlight if empty | |
| 1699 | + -- stylua: ignore |
1695 | 1700 | custom = { |
1696 | | - web = { pattern = '^http', icon = ' ' }, |
1697 | | - apple = { pattern = 'apple%.com', icon = ' ' }, |
1698 | | - discord = { pattern = 'discord%.com', icon = ' ' }, |
1699 | | - github = { pattern = 'github%.com', icon = ' ' }, |
1700 | | - gitlab = { pattern = 'gitlab%.com', icon = ' ' }, |
1701 | | - google = { pattern = 'google%.com', icon = ' ' }, |
1702 | | - hackernews = { pattern = 'ycombinator%.com', icon = ' ' }, |
1703 | | - linkedin = { pattern = 'linkedin%.com', icon = ' ' }, |
1704 | | - microsoft = { pattern = 'microsoft%.com', icon = ' ' }, |
1705 | | - neovim = { pattern = 'neovim%.io', icon = ' ' }, |
1706 | | - reddit = { pattern = 'reddit%.com', icon = ' ' }, |
1707 | | - slack = { pattern = 'slack%.com', icon = ' ' }, |
1708 | | - stackoverflow = { pattern = 'stackoverflow%.com', icon = ' ' }, |
1709 | | - steam = { pattern = 'steampowered%.com', icon = ' ' }, |
1710 | | - twitter = { pattern = 'twitter%.com', icon = ' ' }, |
1711 | | - wikipedia = { pattern = 'wikipedia%.org', icon = ' ' }, |
1712 | | - x = { pattern = 'x%.com', icon = ' ' }, |
1713 | | - youtube = { pattern = 'youtube[^.]*%.com', icon = ' ' }, |
1714 | | - youtube_short = { pattern = 'youtu%.be', icon = ' ' }, |
| 1701 | + web = { icon = ' ', pattern = '^http' }, |
| 1702 | + apple = { icon = ' ', pattern = 'apple%.com', kind = 'url' }, |
| 1703 | + discord = { icon = ' ', pattern = 'discord%.com', kind = 'url' }, |
| 1704 | + github = { icon = ' ', pattern = 'github%.com', kind = 'url' }, |
| 1705 | + gitlab = { icon = ' ', pattern = 'gitlab%.com', kind = 'url' }, |
| 1706 | + google = { icon = ' ', pattern = 'google%.com', kind = 'url' }, |
| 1707 | + hackernews = { icon = ' ', pattern = 'ycombinator%.com', kind = 'url' }, |
| 1708 | + linkedin = { icon = ' ', pattern = 'linkedin%.com', kind = 'url' }, |
| 1709 | + microsoft = { icon = ' ', pattern = 'microsoft%.com', kind = 'url' }, |
| 1710 | + neovim = { icon = ' ', pattern = 'neovim%.io', kind = 'url' }, |
| 1711 | + reddit = { icon = ' ', pattern = 'reddit%.com', kind = 'url' }, |
| 1712 | + slack = { icon = ' ', pattern = 'slack%.com', kind = 'url' }, |
| 1713 | + stackoverflow = { icon = ' ', pattern = 'stackoverflow%.com', kind = 'url' }, |
| 1714 | + steam = { icon = ' ', pattern = 'steampowered%.com', kind = 'url' }, |
| 1715 | + twitter = { icon = ' ', pattern = 'twitter%.com', kind = 'url' }, |
| 1716 | + wikipedia = { icon = ' ', pattern = 'wikipedia%.org', kind = 'url' }, |
| 1717 | + x = { icon = ' ', pattern = 'x%.com', kind = 'url' }, |
| 1718 | + youtube = { icon = ' ', pattern = 'youtube[^.]*%.com', kind = 'url' }, |
| 1719 | + youtube_short = { icon = ' ', pattern = 'youtu%.be', kind = 'url' }, |
1715 | 1720 | }, |
1716 | 1721 | }, |
1717 | 1722 | }) |
|
0 commit comments