Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lua/render-markdown/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ M.colors = {
H6Bg = 'DiffDelete',
-- General
Code = 'ColorColumn',
CodeInline= 'RenderMarkdownCode',
Bullet = 'Normal',
Quote = '@markup.quote',
Dash = 'LineNr',
Expand Down
2 changes: 1 addition & 1 deletion lua/render-markdown/handler/markdown_inline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ M.render_code = function(info)
opts = {
end_row = info.end_row,
end_col = info.end_col,
hl_group = code.highlight,
hl_group = code.highlight_inline,
},
}
end
Expand Down
2 changes: 2 additions & 0 deletions lua/render-markdown/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ local M = {}
---@field public above? string
---@field public below? string
---@field public highlight? string
---@field public highlight_inline? string

---@class render.md.UserHeading
---@field public enabled? boolean
Expand Down Expand Up @@ -253,6 +254,7 @@ M.default_config = {
below = '▀',
-- Highlight for code blocks & inline code
highlight = 'RenderMarkdownCode',
highlight_inline = 'RenderMarkdownCodeInline',
},
dash = {
-- Turn on / off thematic break rendering
Expand Down
1 change: 1 addition & 0 deletions lua/render-markdown/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
---@field public above string
---@field public below string
---@field public highlight string
---@field public highlight_inline string

---@class render.md.Heading
---@field public enabled boolean
Expand Down