|
1 | | -*render-markdown.txt* For 0.10.0 Last change: 2024 August 22 |
| 1 | +*render-markdown.txt* For 0.10.0 Last change: 2024 August 23 |
2 | 2 |
|
3 | 3 | ============================================================================== |
4 | 4 | Table of Contents *render-markdown-table-of-contents* |
@@ -52,32 +52,27 @@ Plugin to improve viewing Markdown files in Neovim |
52 | 52 | ============================================================================== |
53 | 53 | 2. Features *render-markdown-features* |
54 | 54 |
|
55 | | -- Functions entirely inside of Neovim with no external windows |
56 | | -- Changes between `rendered` view in normal mode and `raw` view in all other modes |
57 | | -- Supports anti-conceal behavior, removing any virtual text added by this plugin |
58 | | - on the line the cursor is on, this can be disabled |
59 | | -- Changes window options between `rendered` and `raw` view based on configuration |
60 | | - - Effects `conceallevel` & `concealcursor` by default |
61 | | -- Supports rendering `markdown` injected into any file type |
62 | | -- Renders the following `markdown` components: |
63 | | - - Headings: highlight depending on level and replaces `#` with icon |
64 | | - - Horizontal breaks: replace with full-width lines |
65 | | - - Code blocks: highlight to better stand out |
66 | | - - Adds language icon , requires icon provider (`mini.icons` or `nvim-web-devicons`) |
67 | | - - Left pad lines within block |
68 | | - - Inline code: highlight to better stand out |
69 | | - - List bullet points: replace with provided icon based on level |
70 | | - - Checkboxes: replace with provided icon based on whether they are checked |
71 | | - - Block quotes: replace leading `>` with provided icon |
72 | | - - Tables: replace border characters, handles misaligned tables but does NOT align |
73 | | - according to delimiter indicator |
74 | | - - Callouts <https://github.com/orgs/community/discussions/16925>: Github & Obsidian |
75 | | - out of the box, supports user defined as well |
76 | | - - Custom checkbox states , function similar to `callouts` |
77 | | - - Adds icon before images / links |
78 | | - - `LaTeX` blocks: renders formulas if `latex` parser and `pylatexenc` are installed |
79 | | -- Disable rendering when file is larger than provided value |
80 | | -- Support custom handlers which are ran identically to builtin handlers |
| 55 | +- Contained: runs entirely inside Neovim with no external windows |
| 56 | +- Configurable: all components, padding, icons, and colors can be modified |
| 57 | +- File type agnostic: can render `markdown` injected into any file |
| 58 | +- Mode based rendering: changes between `rendered` and `raw` view based on mode |
| 59 | +- Anti-conceal: hides virtual text added by this plugin on cursor line |
| 60 | +- Window options: changes option values between `rendered` and `raw` view |
| 61 | +- Large files: only renders visisble range, can be entirely disabled based on size |
| 62 | +- Custom rendering: provides extension point where user can add anything |
| 63 | +- Renders the following `markdown` components out of the box: |
| 64 | + - Headings: icon, color, border, padding , width |
| 65 | + - Code blocks: background, language icon , border, padding , width |
| 66 | + - Code inline: background |
| 67 | + - Horizontal breaks: icon, color, width |
| 68 | + - List bullets: icon, color, padding |
| 69 | + - Checkboxes: icon, color, user defined states |
| 70 | + - Block quotes: icon, color, line breaks |
| 71 | + - Callouts: icon, color, user defined values, Github & Obsidian defaults |
| 72 | + - Tables: border, color, alignment indicator, auto align cells always to left |
| 73 | + - Links : icon, color, user defined destinations |
| 74 | + - `LaTeX` blocks : renders formulas |
| 75 | + - Org indent mode : per level padding |
81 | 76 |
|
82 | 77 |
|
83 | 78 | ============================================================================== |
@@ -230,7 +225,12 @@ Full Default Configuration ~ |
230 | 225 |
|
231 | 226 | (shortcut_link) @shortcut |
232 | 227 |
|
233 | | - [(inline_link) (full_reference_link) (image)] @link |
| 228 | + [ |
| 229 | + (image) |
| 230 | + (email_autolink) |
| 231 | + (inline_link) |
| 232 | + (full_reference_link) |
| 233 | + ] @link |
234 | 234 | ]], |
235 | 235 | -- The level of logs to write to file: vim.fn.stdpath('state') .. '/render-markdown.log' |
236 | 236 | -- Only intended to be used for plugin development / debugging |
@@ -501,6 +501,8 @@ Full Default Configuration ~ |
501 | 501 | enabled = true, |
502 | 502 | -- Inlined with 'image' elements |
503 | 503 | image = ' ', |
| 504 | + -- Inlined with 'email_autolink' elements |
| 505 | + email = ' ', |
504 | 506 | -- Fallback icon for 'inline_link' elements |
505 | 507 | hyperlink = ' ', |
506 | 508 | -- Applies to the fallback inlined icon |
@@ -908,6 +910,8 @@ Wiki Page |
908 | 910 | enabled = true, |
909 | 911 | -- Inlined with 'image' elements |
910 | 912 | image = ' ', |
| 913 | + -- Inlined with 'email_autolink' elements |
| 914 | + email = ' ', |
911 | 915 | -- Fallback icon for 'inline_link' elements |
912 | 916 | hyperlink = ' ', |
913 | 917 | -- Applies to the fallback inlined icon |
|
0 commit comments