@@ -38,10 +38,13 @@ local M = {}
3838--- @field public highlight ? string
3939--- @field public custom ? table<string , render.md.UserLinkComponent>
4040
41+ --- @alias render.md.table.Style ' full' | ' normal' | ' none'
42+ --- @alias render.md.table.Cell ' padded' | ' raw' | ' overlay'
43+
4144--- @class (exact ) render.md.UserPipeTable
4245--- @field public enabled ? boolean
43- --- @field public style ? ' full ' | ' normal ' | ' none '
44- --- @field public cell ? ' padded ' | ' raw ' | ' overlay '
46+ --- @field public style ? render.md.table.Style
47+ --- @field public cell ? render.md.table.Cell
4548--- @field public border ? string[]
4649--- @field public alignment_indicator ? string
4750--- @field public head ? string
@@ -82,29 +85,37 @@ local M = {}
8285--- @field public width ? ' full' | integer
8386--- @field public highlight ? string
8487
88+ --- @alias render.md.code.Style ' full' | ' normal' | ' language' | ' none'
89+ --- @alias render.md.code.Position ' left' | ' right'
90+ --- @alias render.md.code.Width ' full' | ' block'
91+ --- @alias render.md.code.Border ' thin' | ' thick'
92+
8593--- @class (exact ) render.md.UserCode
8694--- @field public enabled ? boolean
8795--- @field public sign ? boolean
88- --- @field public style ? ' full ' | ' normal ' | ' language ' | ' none '
89- --- @field public position ? ' left ' | ' right '
96+ --- @field public style ? render.md.code.Style
97+ --- @field public position ? render.md.code.Position
9098--- @field public disable_background ? string[]
91- --- @field public width ? ' full ' | ' block '
99+ --- @field public width ? render.md.code.Width
92100--- @field public left_pad ? integer
93101--- @field public right_pad ? integer
94102--- @field public min_width ? integer
95- --- @field public border ? ' thin ' | ' thick '
103+ --- @field public border ? render.md.code.Border
96104--- @field public above ? string
97105--- @field public below ? string
98106--- @field public highlight ? string
99107--- @field public highlight_inline ? string
100108
109+ --- @alias render.md.heading.Position ' overlay' | ' inline'
110+ --- @alias render.md.heading.Width ' full' | ' block'
111+
101112--- @class (exact ) render.md.UserHeading
102113--- @field public enabled ? boolean
103114--- @field public sign ? boolean
104- --- @field public position ? ' overlay ' | ' inline '
115+ --- @field public position ? render.md.heading.Position
105116--- @field public icons ? string[]
106117--- @field public signs ? string[]
107- --- @field public width ? ' full ' | ' block '
118+ --- @field public width ? render.md.heading.Width | ( render.md.heading.Width ) []
108119--- @field public left_pad ? integer
109120--- @field public right_pad ? integer
110121--- @field public min_width ? integer
@@ -139,12 +150,15 @@ local M = {}
139150--- @field public sign ? render.md.UserSign
140151--- @field public win_options ? table<string , render.md.UserWindowOption>
141152
153+ --- @alias render.md.config.Preset ' none' | ' lazy' | ' obsidian'
154+ --- @alias render.md.config.LogLevel ' debug' | ' error'
155+
142156--- @class (exact ) render.md.UserConfig : render.md.UserBufferConfig
143- --- @field public preset ? ' none ' | ' lazy ' | ' obsidian '
157+ --- @field public preset ? render.md.config.Preset
144158--- @field public markdown_query ? string
145159--- @field public markdown_quote_query ? string
146160--- @field public inline_query ? string
147- --- @field public log_level ? ' debug ' | ' error '
161+ --- @field public log_level ? render.md.config.LogLevel
148162--- @field public file_types ? string[]
149163--- @field public acknowledge_conflicts ? boolean
150164--- @field public latex ? render.md.UserLatex
@@ -257,6 +271,8 @@ M.default_config = {
257271 -- Width of the heading background:
258272 -- block: width of the heading text
259273 -- full: full width of the window
274+ -- Can also be an array of the above values in which case the 'level' is used
275+ -- to index into the array using a clamp
260276 width = ' full' ,
261277 -- Amount of padding to add to the left of headings
262278 left_pad = 0 ,
0 commit comments