@@ -8,9 +8,11 @@ Plugin to improve viewing Markdown files in Neovim
8
8
9
9
- Functions entirely inside of Neovim with no external windows
10
10
- Changes between ` rendered ` view in normal mode and raw view in all other modes
11
+ - Supports rendering ` markdown ` injected into other file types
11
12
- Highlights headings with different groups depending on level and replaces ` # `
12
13
- Highlights code blocks to better stand out
13
14
- Replaces whichever style bullet point is being used with provided character
15
+ - Replaces block quote leading ` > ` with provided character
14
16
- Updates table borders with better border characters, does NOT automatically align
15
17
- Basic support for ` LaTeX ` if ` pylatexenc ` is installed on system
16
18
@@ -64,6 +66,9 @@ require('render-markdown').setup({
64
66
(list_marker_star)
65
67
] @list_marker
66
68
69
+ (block_quote (block_quote_marker) @quote_marker)
70
+ (block_quote (paragraph (inline (block_continuation) @quote_marker)))
71
+
67
72
(pipe_table_header) @table_head
68
73
(pipe_table_delimiter_row) @table_delim
69
74
(pipe_table_row) @table_row
@@ -73,15 +78,18 @@ require('render-markdown').setup({
73
78
-- vim modes that will show a rendered view of the markdown file, all other
74
79
-- modes will be uneffected by this plugin
75
80
render_modes = { ' n' , ' c' },
76
- -- Characters that will replace the # at the start of markdown headings
81
+ -- Characters that will replace the # at the start of headings
77
82
headings = { ' ' , ' ' , ' ' , ' ' , ' ' , ' ' },
78
83
-- Character to use for the bullet point in lists
79
84
bullet = ' ○' ,
85
+ -- Character that will replace the > at the start of block quotes
86
+ quote = ' ┃' ,
87
+ -- Define the highlight groups to use when rendering various components
80
88
highlights = {
81
89
heading = {
82
- -- Used for rendering heading line backgrounds
90
+ -- Background of heading line
83
91
backgrounds = { ' DiffAdd' , ' DiffChange' , ' DiffDelete' },
84
- -- Used for rendering the foreground of the heading character only
92
+ -- Foreground of heading character only
85
93
foregrounds = {
86
94
' markdownH1' ,
87
95
' markdownH2' ,
@@ -91,18 +99,20 @@ require('render-markdown').setup({
91
99
' markdownH6' ,
92
100
},
93
101
},
94
- -- Used when displaying code blocks
102
+ -- Code blocks
95
103
code = ' ColorColumn' ,
96
- -- Used when displaying bullet points in list
104
+ -- Bullet points in list
97
105
bullet = ' Normal' ,
98
106
table = {
99
- -- Used when displaying header in a markdown table
107
+ -- Header of a markdown table
100
108
head = ' @markup.heading' ,
101
- -- Used when displaying non header rows in a markdown table
109
+ -- Non header rows in a markdown table
102
110
row = ' Normal' ,
103
111
},
104
- -- Used when displaying LaTeX
105
- latex = ' Special' ,
112
+ -- LaTeX blocks
113
+ latex = ' @markup.math' ,
114
+ -- Quote character in a block quote
115
+ quote = ' @markup.quote' ,
106
116
},
107
117
})
108
118
```
0 commit comments