Skip to content

Commit 06ed008

Browse files
chore: add yaml parser as optional dependency to README
1 parent 7b37aab commit 06ed008

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
## Pre-release
44

5+
### Features
6+
7+
- render list item bullet points in yaml [#496](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/496)
8+
[d7be79b](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/d7be79b1a006a2afd9945b5d48d3f1f3ce41ce69)
9+
10+
### Bug Fixes
11+
12+
- prioritize hide over highlight_border [7b37aab](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/7b37aaba005df5744fc7a6bd4225983576b2a950)
13+
514
## 8.7.0 (2025-08-08)
615

716
### Features

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ Plugin to improve viewing Markdown files in Neovim
5151
- [treesitter](https://github.com/nvim-treesitter/nvim-treesitter) parsers:
5252
- [markdown & markdown_inline](https://github.com/tree-sitter-grammars/tree-sitter-markdown):
5353
Used to parse `markdown` files
54-
- [latex](https://github.com/latex-lsp/tree-sitter-latex) (Optional):
55-
Used to get `latex` blocks from `markdown` files
5654
- [html](https://github.com/tree-sitter/tree-sitter-html) (Optional):
5755
Used to conceal `HTML` comments
56+
- [latex](https://github.com/latex-lsp/tree-sitter-latex) (Optional):
57+
Used to get `latex` blocks from `markdown` files
58+
- [yaml](https://github.com/tree-sitter-grammars/tree-sitter-yaml) (Optional):
59+
Used to render elements in `frontmatter` metadata
5860
- Icon provider plugin (Optional): Used for icon above code blocks
5961
- [mini.icons](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-icons.md)
6062
- [nvim-web-devicons](https://github.com/nvim-tree/nvim-web-devicons)

benches/readme_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ local util = require('benches.util')
44

55
describe('README.md', function()
66
it('default', function()
7-
local base_marks = 113
7+
local base_marks = 114
88
util.less_than(util.setup('README.md'), 40)
99
util.num_marks(base_marks)
1010

doc/render-markdown.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For NVIM v0.11.3 Last change: 2025 August 14
1+
*render-markdown.txt* For NVIM v0.11.3 Last change: 2025 August 15
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -79,10 +79,12 @@ Plugin to improve viewing Markdown files in Neovim
7979
- treesitter <https://github.com/nvim-treesitter/nvim-treesitter> parsers:
8080
- markdown & markdown_inline <https://github.com/tree-sitter-grammars/tree-sitter-markdown>:
8181
Used to parse `markdown` files
82-
- latex <https://github.com/latex-lsp/tree-sitter-latex> (Optional):
83-
Used to get `latex` blocks from `markdown` files
8482
- html <https://github.com/tree-sitter/tree-sitter-html> (Optional):
8583
Used to conceal `HTML` comments
84+
- latex <https://github.com/latex-lsp/tree-sitter-latex> (Optional):
85+
Used to get `latex` blocks from `markdown` files
86+
- yaml <https://github.com/tree-sitter-grammars/tree-sitter-yaml> (Optional):
87+
Used to render elements in `frontmatter` metadata
8688
- Icon provider plugin (Optional): Used for icon above code blocks
8789
- mini.icons <https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-icons.md>
8890
- nvim-web-devicons <https://github.com/nvim-tree/nvim-web-devicons>

lua/render-markdown/health.lua

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

77
---@private
8-
M.version = '8.7.3'
8+
M.version = '8.7.4'
99

1010
function M.check()
1111
M.start('versions')

lua/render-markdown/render/markdown/quote.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function Render:markers()
9898
-- overlay the range of the one at the current level if it exists
9999
self:marker(node, self.data.level)
100100
else
101-
error('unhandled quote capture: ' .. capture)
101+
error(('unhandled quote capture: %s'):format(capture))
102102
end
103103
end)
104104
end

lua/render-markdown/request/view.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ end
6969
---@param query vim.treesitter.Query
7070
---@param callback fun(capture: string, node: render.md.Node)
7171
function View:nodes(root, query, callback)
72-
self:query(root, query, function(id, ts)
73-
if not ts:has_error() then
72+
self:query(root, query, function(id, ts_node)
73+
if not ts_node:has_error() then
7474
local capture = query.captures[id]
75-
local node = Node.new(self.buf, ts)
75+
local node = Node.new(self.buf, ts_node)
7676
log.node(capture, node)
7777
callback(capture, node)
7878
end

0 commit comments

Comments
 (0)