feature: allow concealing latex code
评估
调研方向
Start by reading how the plugin handles its inline and block rendering options and how rendered block formulas are displayed; the issue does not name specific files or tests. Check whether the existing rendering flow can support a mode that hides the LaTeX source. Done when users can configure formula source lines to be hidden in rendered mode.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
I'm using utftex for latex.
When I render any block formula, the latex code is still displayed below even in the normal (rendered) mode. E.g. lines 9-11 in the rendered case below - which I would like to hide.
8
⌠ x²
⎮ x dx = ── + C
⌡ 2
9 $$
10 \int x dx = \frac{x^2}{2} + C
11 $$
Describe the solution you'd like
I'd like to configure it so that the formula (lines 9-11 in example) is hidden when it is rendered.
I was unable to find any way to prevent this from happening.
The inline and block rendering options for example, are above or below, not replace.
Would love to know if it is already possible - if so I can adopt to it.
Describe alternatives you've considered
A possible workaround could be to add a hook and handle it myself like this -
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*.md",
callback = function()
-- Find and conceal LaTeX block source lines
end
})
But I wasn't successful yet with that.
Additional information
No response
- 主要语言
- Lua
- 星标
- 5.2k
- 派生
- 152
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MeanderingProgrammer/render-markdown.nvim 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 4/5 3-5 天 新手友好度 57/100
-
难度 5/5 一周以上 新手友好度 38/100
MeanderingProgrammer/render-markdown.nvim#711 · 1 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 55/100
-
bug
难度 4/5 1-2 天 新手友好度 55/100
查看 MeanderingProgrammer/render-markdown.nvim 的全部 Issue
相似的 Issue
-
bug(bufdelete): all()/other() abort with "Invalid buffer id" when a buffer is wiped during the loop未关闭
难度 2/5 1-3 小时 新手友好度 82/100
folke/snacks.nvim#2986 ·
-
bug discord guide:ruins-of-lordaeron locale:enUS triage v0.3.2
难度 2/5 1-3 小时 新手友好度 65/100
fitzforge/polestar#999 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
-
feature request
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100