feature: allow concealing latex code

未关闭
#717 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@hirak99 已经在做这个了。

开始于 2026年11月3日。

  • #718 来自 @hirak99 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
65/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
latex, lua, markdown
领域
tooling

调研方向

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 内容生成。

描述

enhancement
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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MeanderingProgrammer/render-markdown.nvim 的其他 Issue

查看 MeanderingProgrammer/render-markdown.nvim 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。