Skip to content

Commit 017f370

Browse files
fix: ignore anti conceal for heading icons using inline position
## Details Part of the refactor done for supporting right heading position broke the anti conceal behavior for inline heading icons by using the wrong element value when appending to the list of marks. Fix is to use the correct element value as opposed to the static true value.
1 parent e1879e0 commit 017f370

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212
[78a2eb7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/78a2eb7fc273f36790aa390262f390a3265eedff)
1313
- log_level off [#235](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/235)
1414
[48a52dd](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/48a52dd5c847c59eac6ae5b96ff0123acd1a394d)
15+
- highlighting in double equals [d6a82d7](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/d6a82d70765aa238b7ea48d257a1d57a92501423)
16+
- heading border per level [#240](https://github.com/MeanderingProgrammer/render-markdown.nvim/discussions/240)
17+
[c83fc56](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/c83fc5694cd19c576af188f5f3313513bf467272)
18+
- heading position right [#238](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/238)
19+
[e1879e0](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/e1879e0ea3d5cee295b48335fc90e76ae8a63081)
1520

1621
### Bug Fixes
1722

1823
- padding & margin for code blocks indented with tabs [#230](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/230)
1924
[d80acb3](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/d80acb3f4ccc88052f65fa0a26e46c106b328bbe)
25+
- check table rows after parsing [7f0143e](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/7f0143e9adf7140c8e3fa33a5bdf193d7a8f0429)
26+
- conceal level 2 entities in tables [430a671](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/430a671655ac84a63f41cd3e940caebdd0a99434)
2027

2128
## 7.5.0 (2024-11-04)
2229

doc/render-markdown.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For 0.10.0 Last change: 2024 November 22
1+
*render-markdown.txt* For 0.10.0 Last change: 2024 November 25
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*

lua/render-markdown/health.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local state = require('render-markdown.state')
44
local M = {}
55

66
---@private
7-
M.version = '7.5.12'
7+
M.version = '7.5.13'
88

99
function M.check()
1010
M.start('version')

lua/render-markdown/render/heading.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function Render:icon()
115115
else
116116
local padding = width - Str.width(icon)
117117
if self.heading.position == 'inline' or padding < 0 then
118-
local added = self.marks:add_over(true, marker, {
118+
local added = self.marks:add_over('head_icon', marker, {
119119
virt_text = { { icon, highlight } },
120120
virt_text_pos = 'inline',
121121
conceal = '',

0 commit comments

Comments
 (0)