feature: allow concealing latex code
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Lua
- Estrellas
- 5.2k
- Forks
- 152
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MeanderingProgrammer/render-markdown.nvim
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 57/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
MeanderingProgrammer/render-markdown.nvim#711 · 1 comentario ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
bug
Dificultad 4/5 1-2 días Aptitud para principiantes 55/100
Todos los issues de MeanderingProgrammer/render-markdown.nvim
Issues similares
-
bug(bufdelete): all()/other() abort with "Invalid buffer id" when a buffer is wiped during the loopAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
folke/snacks.nvim#2986 ·
-
bug discord guide:ruins-of-lordaeron locale:enUS triage v0.3.2
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
fitzforge/polestar#999 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
-
feature request
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
dictionary size soft limitAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100