Skip to content

Commit 069768d

Browse files
Use thicker block quote marker by default
1 parent 6d153d7 commit 069768d

File tree

7 files changed

+20
-19
lines changed

7 files changed

+20
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ require('render-markdown').setup({
153153
checked = '󰱒 ',
154154
},
155155
-- Character that will replace the > at the start of block quotes
156-
quote = '',
156+
quote = '',
157157
-- Symbol / text to use for different callouts
158158
callout = {
159159
note = '󰋽 Note',

demo/box_dash_quote.gif

211 Bytes
Loading

demo/callout.gif

3.44 KB
Loading

doc/render-markdown.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For 0.10.0 Last change: 2024 June 30
1+
*render-markdown.txt* For 0.10.0 Last change: 2024 July 01
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -181,7 +181,7 @@ modified by the user.
181181
checked = '󰱒 ',
182182
},
183183
-- Character that will replace the > at the start of block quotes
184-
quote = '',
184+
quote = '',
185185
-- Symbol / text to use for different callouts
186186
callout = {
187187
note = '󰋽 Note',

lua/render-markdown/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ M.default_config = {
141141
checked = '󰱒 ',
142142
},
143143
-- Character that will replace the > at the start of block quotes
144-
quote = '',
144+
quote = '',
145145
-- Symbol / text to use for different callouts
146146
callout = {
147147
note = '󰋽 Note',

tests/box_dash_quote_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ async_tests.describe('box_dash_quote.md', function()
6464
{
6565
row = { 7, 7 },
6666
col = { 0, 4 },
67-
virt_text = { { ' ', '@markup.quote' } },
67+
virt_text = { { ' ', '@markup.quote' } },
6868
virt_text_pos = 'overlay',
6969
},
7070
{
7171
row = { 8, 8 },
7272
col = { 0, 4 },
73-
virt_text = { { ' ', '@markup.quote' } },
73+
virt_text = { { ' ', '@markup.quote' } },
7474
virt_text_pos = 'overlay',
7575
},
7676
})

tests/callout_spec.lua

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ async_tests.describe('callout.md', function()
66
util.setup('demo/callout.md')
77

88
local expected = {}
9+
local quote = ''
910

1011
local note_start = 0
1112
vim.list_extend(expected, {
@@ -22,7 +23,7 @@ async_tests.describe('callout.md', function()
2223
{
2324
row = { note_start + 2, note_start + 2 },
2425
col = { 0, 2 },
25-
virt_text = { { ' ', 'DiagnosticInfo' } },
26+
virt_text = { { quote .. ' ', 'DiagnosticInfo' } },
2627
virt_text_pos = 'overlay',
2728
},
2829
-- Callout text
@@ -36,25 +37,25 @@ async_tests.describe('callout.md', function()
3637
{
3738
row = { note_start + 3, note_start + 3 },
3839
col = { 0, 1 },
39-
virt_text = { { '', 'DiagnosticInfo' } },
40+
virt_text = { { quote, 'DiagnosticInfo' } },
4041
virt_text_pos = 'overlay',
4142
},
4243
{
4344
row = { note_start + 4, note_start + 4 },
4445
col = { 0, 2 },
45-
virt_text = { { ' ', 'DiagnosticInfo' } },
46+
virt_text = { { quote .. ' ', 'DiagnosticInfo' } },
4647
virt_text_pos = 'overlay',
4748
},
4849
{
4950
row = { note_start + 5, note_start + 5 },
5051
col = { 0, 1 },
51-
virt_text = { { '', 'DiagnosticInfo' } },
52+
virt_text = { { quote, 'DiagnosticInfo' } },
5253
virt_text_pos = 'overlay',
5354
},
5455
{
5556
row = { note_start + 6, note_start + 6 },
5657
col = { 0, 2 },
57-
virt_text = { { ' ', 'DiagnosticInfo' } },
58+
virt_text = { { quote .. ' ', 'DiagnosticInfo' } },
5859
virt_text_pos = 'overlay',
5960
},
6061
})
@@ -74,7 +75,7 @@ async_tests.describe('callout.md', function()
7475
{
7576
row = { tip_start + 2, tip_start + 2 },
7677
col = { 0, 2 },
77-
virt_text = { { ' ', 'DiagnosticOk' } },
78+
virt_text = { { quote .. ' ', 'DiagnosticOk' } },
7879
virt_text_pos = 'overlay',
7980
},
8081
-- Callout text
@@ -88,7 +89,7 @@ async_tests.describe('callout.md', function()
8889
{
8990
row = { tip_start + 3, tip_start + 3 },
9091
col = { 0, 2 },
91-
virt_text = { { ' ', 'DiagnosticOk' } },
92+
virt_text = { { quote .. ' ', 'DiagnosticOk' } },
9293
virt_text_pos = 'overlay',
9394
},
9495
})
@@ -108,7 +109,7 @@ async_tests.describe('callout.md', function()
108109
{
109110
row = { important_start + 2, important_start + 2 },
110111
col = { 0, 2 },
111-
virt_text = { { ' ', 'DiagnosticHint' } },
112+
virt_text = { { quote .. ' ', 'DiagnosticHint' } },
112113
virt_text_pos = 'overlay',
113114
},
114115
-- Callout text
@@ -122,7 +123,7 @@ async_tests.describe('callout.md', function()
122123
{
123124
row = { important_start + 3, important_start + 3 },
124125
col = { 0, 2 },
125-
virt_text = { { ' ', 'DiagnosticHint' } },
126+
virt_text = { { quote .. ' ', 'DiagnosticHint' } },
126127
virt_text_pos = 'overlay',
127128
},
128129
})
@@ -142,7 +143,7 @@ async_tests.describe('callout.md', function()
142143
{
143144
row = { warning_start + 2, warning_start + 2 },
144145
col = { 0, 2 },
145-
virt_text = { { ' ', 'DiagnosticWarn' } },
146+
virt_text = { { quote .. ' ', 'DiagnosticWarn' } },
146147
virt_text_pos = 'overlay',
147148
},
148149
-- Callout text
@@ -156,7 +157,7 @@ async_tests.describe('callout.md', function()
156157
{
157158
row = { warning_start + 3, warning_start + 3 },
158159
col = { 0, 2 },
159-
virt_text = { { ' ', 'DiagnosticWarn' } },
160+
virt_text = { { quote .. ' ', 'DiagnosticWarn' } },
160161
virt_text_pos = 'overlay',
161162
},
162163
})
@@ -176,7 +177,7 @@ async_tests.describe('callout.md', function()
176177
{
177178
row = { caution_start + 2, caution_start + 2 },
178179
col = { 0, 2 },
179-
virt_text = { { ' ', 'DiagnosticError' } },
180+
virt_text = { { quote .. ' ', 'DiagnosticError' } },
180181
virt_text_pos = 'overlay',
181182
},
182183
-- Callout text
@@ -190,7 +191,7 @@ async_tests.describe('callout.md', function()
190191
{
191192
row = { caution_start + 3, caution_start + 3 },
192193
col = { 0, 2 },
193-
virt_text = { { ' ', 'DiagnosticError' } },
194+
virt_text = { { quote .. ' ', 'DiagnosticError' } },
194195
virt_text_pos = 'overlay',
195196
},
196197
})

0 commit comments

Comments
 (0)