bug: heading overlay obscures text with Pandoc syntax conceal
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start by reproducing the heading.position = 'overlay' behavior with the shown lazy.nvim configuration and the pandoc filetype. Compare it with heading.position = 'inline', then isolate the effect of vim-pandoc-syntax conceal and vim-markdown in a minimal setup. Done means heading text remains visible for pandoc headings without changing the source contents.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Neovim version
0.12.0
Neovim distribution
Custom configuration using lazy.nvim
Operating system
Linux 6.17.0-40-generic
Terminal emulator / GUI
Kitty (TERM=xterm-kitty)
Describe the bug
In my setup, with the default heading.position = 'overlay', the numbered circle heading icons appear but the beginning of the heading text is obscured (approximately the first two letters). The file contents are intact. Setting heading.position = 'inline' avoids the problem.
This may be an interaction with the other Markdown plugins in my configuration rather than a standalone render-markdown bug: vim-pandoc sets the filetype of *.md to pandoc, vim-pandoc-syntax conceals ATX heading markers, and vim-markdown is also installed. The render-markdown plugin is configured to load for both markdown and pandoc filetypes. I have not isolated which of these is necessary to reproduce it.
Illustrative source text (the symptom was seen with headings at multiple levels in my files; this snippet is not a confirmed standalone reproducer):
# Heading sample
## Second heading
### Third heading
Observed: circular heading-number icons are drawn, but the first characters of heading text disappear from the displayed line. This is a visual problem only; the source text is unchanged. There are no plugin errors.
Expected behavior
Heading icons replace the Markdown marker without covering any heading text, including when the Markdown filetype is detected as pandoc.
Plugin configuration for reproduction
{
'MeanderingProgrammer/render-markdown.nvim',
ft = { 'markdown', 'pandoc' },
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
opts = {}, -- heading.position defaults to 'overlay'
}
Local workaround: opts = { heading = { position = 'inline' } }.
Healthcheck output (:checkhealth render-markdown)
==============================================================================
render-markdown: 7 ⚠️
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] ~
- ⚠️ WARNING parser: not installed
- ADVICE:
- disable html support to avoid this warning
require("render-markdown").setup({
html = { enabled = false },
})
- ⚠️ WARNING ABI: unknown
- ADVICE:
- disable html support to avoid this warning
require("render-markdown").setup({
html = { enabled = false },
})
render-markdown.nvim [tree-sitter latex] ~
- ⚠️ WARNING parser: not installed
- ADVICE:
- disable latex support to avoid this warning
require("render-markdown").setup({
latex = { enabled = false },
})
- ⚠️ WARNING ABI: unknown
- ADVICE:
- disable latex support to avoid this warning
require("render-markdown").setup({
latex = { enabled = false },
})
render-markdown.nvim [tree-sitter yaml] ~
- ⚠️ WARNING parser: not installed
- ADVICE:
- disable yaml support to avoid this warning
require("render-markdown").setup({
yaml = { enabled = false },
})
- ⚠️ WARNING ABI: unknown
- ADVICE:
- disable yaml support to avoid this warning
require("render-markdown").setup({
yaml = { enabled = false },
})
render-markdown.nvim [icons] ~
- ✅ OK using: nvim-web-devicons
render-markdown.nvim [latex] ~
- ⚠️ WARNING none installed: { "utftex", "latex2text" }
- ADVICE:
- disable latex support to avoid this warning
require("render-markdown").setup({
latex = { enabled = false },
})
render-markdown.nvim [conflicts] ~
- ✅ OK headlines: not installed
- ✅ OK markview: not installed
- ✅ OK obsidian: not installed
Plugin error log
N/A
Additional information
Installed render-markdown version 8.14.0 (640a3ec), matching upstream HEAD when checked. markdown and markdown_inline parsers are present. I have not run :TSUpdate as part of this report, and cannot yet claim a clean/minimal configuration reproduces it. If this is due to conflicting Pandoc syntax conceal, guidance on compatibility or an appropriate fallback would be helpful.
- Lingua principale
- Lua
- Stelle
- 5.2k
- Fork
- 145
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MeanderingProgrammer/render-markdown.nvim
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
MeanderingProgrammer/render-markdown.nvim#709 ·
I maintainer di solito rispondono entro 6 giorni
-
bug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 55/100
MeanderingProgrammer/render-markdown.nvim#706 ·
I maintainer di solito rispondono entro 6 giorni
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
MeanderingProgrammer/render-markdown.nvim#685 ·
I maintainer di solito rispondono entro 6 giorni
-
bug: Tables don't render correctly if the pipe at the end of line is missingForse già presa @samholmes l’ha presa 95 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
MeanderingProgrammer/render-markdown.nvim#673 · 2 commenti ·
I maintainer di solito rispondono entro 6 giorni
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
MeanderingProgrammer/render-markdown.nvim#656 ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di MeanderingProgrammer/render-markdown.nvim
Issue simili
-
documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
EmirErtorer/ink-away.koplugin#38 · 1 commento ·
-
Add event count to export UIApertaFeature Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Questie/QuestieTrace#92 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
WitchAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
LuaLS/lua-language-server#3471 ·
-
RadlNavi Routing V2.3.5 Rechts/Links Kombinationen halb unterdrücktForse già presa @thomas-munichways l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100