bug: LaTeX markup is not hidden when equations are rendered
维护者通常 6 天内回复
还没有人认领这个 Issue。
评估
调研方向
Reproduce the issue in a Markdown buffer using the reported $$ equation and plugin configuration, then trace the LaTeX rendering and conceal handling. Done means the rendered equation remains visible while the raw LaTeX block is hidden, except in insert mode or with anti-conceal enabled.
由索引模型根据 Issue 内容生成。
描述
Neovim version (nvim -v)
0.12.5
Neovim distribution
AstroNvim
Operating system
Arch Linux
Terminal emulator / GUI
WezTerm & Neovide
Describe the bug
LaTeX blocks using $$ are not hidden when the equations are rendered. The rendered equations appear above the raw latex block.
$$
\left[
\begin{matrix}
1 & 3 & 1 \
1 & 2 & -1 \
3 & 11 & 5 \
\end{matrix}
\right]
\left[
\begin{matrix}
x \
y \
z \
\end{matrix}
\right]
{=}
\left[
\begin{matrix}
9 \
1 \
35 \
\end{matrix}
\right]
\longrightarrow
\left[
\begin{matrix}
1 & 3 & 1 \
0 & 1 & 2 \
0 & 0 & 1 \
\end{matrix}
\right]
\left[
\begin{matrix}
x \
y \
z \
\end{matrix}
\right]
{=}
\left[
\begin{matrix}
9 \
8 \
4 \
\end{matrix}
\right]
$$
\left[
\begin{matrix}
1 & 3 & 1 \\
1 & 2 & -1 \\
3 & 11 & 5 \\
\end{matrix}
\right]
\left[
\begin{matrix}
x \\
y \\
z \\
\end{matrix}
\right]
{=}
\left[
\begin{matrix}
9 \\
1 \\
35 \\
\end{matrix}
\right]
\longrightarrow
\left[
\begin{matrix}
1 & 3 & 1 \\
0 & 1 & 2 \\
0 & 0 & 1 \\
\end{matrix}
\right]
\left[
\begin{matrix}
x \\
y \\
z \\
\end{matrix}
\right]
{=}
\left[
\begin{matrix}
9 \\
8 \\
4 \\
\end{matrix}
\right]
Expected behavior
Only the rendered equations should be shown and the markup should be hidden except when in insert mode or anti-conceal.
Healthcheck output
render-markdown: ✅
render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.14.0
render-markdown.nvim [configuration] ~
- ✅ OK valid
render-markdown.nvim [tree-sitter markdown] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown/highlights.scm
- ✅ OK highlighter: enabled
render-markdown.nvim [tree-sitter markdown_inline] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
- ✅ OK highlights: ~/.local/share/nvim/site/queries/markdown_inline/highlights.scm
render-markdown.nvim [tree-sitter html] ~
- ✅ OK parser: installed
- ✅ OK ABI: 14
render-markdown.nvim [tree-sitter latex] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
render-markdown.nvim [tree-sitter yaml] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
render-markdown.nvim [icons] ~
- ✅ OK using: mini.icons
render-markdown.nvim [latex] ~
- ✅ OK using: { "utftex" }
render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: not installed
- ✅ OK snacks: installed but should not conflict
Plugin configuration
{
anti_conceal = {
enabled = false
},
completions = {
blink = {
enabled = true
},
lsp = {
enabled = true
}
},
file_types = {
[2] = "quarto"
},
restart_highlighter = true,
win_options = {
concealcursor = {
rendered = "nvic"
}
}
}
Plugin error log
N/A
Confirmations
- I have updated this plugin to the latest version using my plugin manager
- I have updated all treesitter parsers (:TSUpdate)
- I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
No response
- 主要语言
- Lua
- 星标
- 5.2k
- 派生
- 145
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MeanderingProgrammer/render-markdown.nvim 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#709 ·
维护者通常 6 天内回复
-
bug
难度 4/5 1-2 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#706 ·
维护者通常 6 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
MeanderingProgrammer/render-markdown.nvim#685 ·
维护者通常 6 天内回复
-
bug: Tables don't render correctly if the pipe at the end of line is missing可能已有人在做 @samholmes 于 95 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 55/100
MeanderingProgrammer/render-markdown.nvim#673 · 2 条评论 ·
维护者通常 6 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
MeanderingProgrammer/render-markdown.nvim#656 ·
维护者通常 6 天内回复
查看 MeanderingProgrammer/render-markdown.nvim 的全部 Issue
相似的 Issue
-
bug good first issue ready ticket
难度 2/5 1-3 小时 新手友好度 82/100
Domktorymysli/vclu#20 ·
-
配置文件的注释没有及时更新未关闭
难度 1/5 1 小时以内 新手友好度 75/100
amzxyz/rime-wanxiang#1264 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 70/100
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 62/100
InauguralSystems/EigenLua#60 ·
维护者通常 1 天内回复