Skip to content

Commit 3811dbf

Browse files
Make optional depdency more clear, remove some disabled diagnostics
1 parent 655da2c commit 3811dbf

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Plugin to improve viewing Markdown files in Neovim
2525
- [markdown & markdown_inline](https://github.com/tree-sitter-grammars/tree-sitter-markdown)
2626
parsers for [treesitter](https://github.com/nvim-treesitter/nvim-treesitter):
2727
Used to parse `markdown` files
28-
- [pylatexenc](https://pypi.org/project/pylatexenc/): Used to transform `LaTeX` strings
29-
to appropriate unicode using `latex2text`, not a mandatory dependency
28+
- [pylatexenc](https://pypi.org/project/pylatexenc/) (Optional): Used to
29+
transform `LaTeX` strings to appropriate unicode using `latex2text`
3030

3131
# Install
3232

doc/render-markdown.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*render-markdown.txt* For 0.10.0 Last change: 2024 May 17
1+
*render-markdown.txt* For 0.10.0 Last change: 2024 May 21
22

33
==============================================================================
44
Table of Contents *render-markdown-table-of-contents*
@@ -48,8 +48,8 @@ Plugin to improve viewing Markdown files in Neovim
4848
- markdown & markdown_inline <https://github.com/tree-sitter-grammars/tree-sitter-markdown>
4949
parsers for treesitter <https://github.com/nvim-treesitter/nvim-treesitter>:
5050
Used to parse `markdown` files
51-
- pylatexenc <https://pypi.org/project/pylatexenc/>: Used to transform `LaTeX` strings
52-
to appropriate unicode using `latex2text`, not a mandatory dependency
51+
- pylatexenc <https://pypi.org/project/pylatexenc/> (Optional): Used to
52+
transform `LaTeX` strings to appropriate unicode using `latex2text`
5353

5454

5555
==============================================================================

lua/render-markdown/handler/markdown.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ local M = {}
1010
---@param buf integer
1111
M.render = function(namespace, root, buf)
1212
local highlights = state.config.highlights
13-
---@diagnostic disable-next-line: missing-parameter
1413
for id, node in state.markdown_query:iter_captures(root, buf) do
1514
local capture = state.markdown_query.captures[id]
1615
local value = vim.treesitter.get_node_text(node, buf)

lua/render-markdown/handler/markdown_inline.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ local M = {}
88
---@param buf integer
99
M.render = function(namespace, root, buf)
1010
local highlights = state.config.highlights
11-
---@diagnostic disable-next-line: missing-parameter
1211
for id, node in state.inline_query:iter_captures(root, buf) do
1312
local capture = state.inline_query.captures[id]
1413
local start_row, start_col, end_row, end_col = node:range()

0 commit comments

Comments
 (0)