Skip to content

Commit 8eed20a

Browse files
Update docs with start_enabled flag
1 parent 510afd0 commit 8eed20a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/render-markdown.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For 0.9.5 Last change: 2024 May 01
1+
*render-markdown.txt* For 0.9.5 Last change: 2024 May 03
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -76,6 +76,8 @@ modified by the user.
7676

7777
>lua
7878
require('render-markdown').setup({
79+
-- Configure whether Markdown should be rendered by default or not
80+
start_enabled = true,
7981
-- Capture groups that get pulled from markdown
8082
markdown_query = [[
8183
(atx_heading [

lua/render-markdown/init.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ function M.setup(opts)
130130
latex = '@markup.math',
131131
quote = '@markup.quote',
132132
},
133-
enabled = true,
134133
}
135134
state.config = vim.tbl_deep_extend('force', default_config, opts or {})
136135
state.enabled = state.config.start_enabled
@@ -172,4 +171,3 @@ M.toggle = function()
172171
end
173172

174173
return M
175-

0 commit comments

Comments
 (0)