bug: Tables don't render correctly if the pipe at the end of line is missing
Les mainteneurs répondent en général sous 6 jours
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 55/100
Piste de recherche
Reproduisez le problème dans Neovim en utilisant le tableau Markdown présenté dans le rapport et la configuration pipe_table fournie, puis suivez la manière dont le plugin reconnaît les tableaux sans pipe final. C’est terminé lorsque l’exemple est correctement rendu tout en préservant le comportement existant des tableaux ; ajoutez ou exécutez un test de régression ciblé si le projet en possède un.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Neovim version (nvim -v)
0.12.2
Neovim distribution
LazyVIM
Operating system
Linux (Arch, btw)
Terminal emulator / GUI
Alacritty
Describe the bug
Tables are not rendered correctly if the trailing pipe is omitted.
From GitHub-flawored markdown spec (common mark doesn't have tables):
A leading and trailing pipe is also recommended for clarity of reading, and if there’s otherwise parsing ambiguity.
Recommended - not required.
I usually omit the trailing pipes - the tables look ok in plain text without inserting dozens of empty spaces to align the right border.
Table like this should be valid and render correctly.
It looks good in plain text, without a need to insert dozens of spaces
| state | dscription
|--------|---
| open | port is accessible, and service is listening
| closed | port is accessible, but no service is listening
Expected behavior
Tables without a trailing pipe should be rendered correctly.
Healthcheck output
==============================================================================
render-markdown: 3 ⚠️
render-markdown.nvim [versions] ~
- ✅ OK neovim >= 0.11
- ✅ OK tree-sitter ABI: 15
- ✅ OK plugin: 8.13.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] ~
- ⚠️ 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] ~
- ✅ OK parser: installed
- ✅ OK ABI: 15
render-markdown.nvim [icons] ~
- ✅ OK using: mini.icons
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 configuration
config {
checkbox = {
bullet = true,
checked = {
icon = ""
},
custom = {
todo = {
rendered = ""
}
},
unchecked = {
icon = ""
}
},
code = {
border = "thin",
right_pad = 1,
width = "block"
},
file_types = {
[2] = "norg",
[3] = "rmd",
[4] = "org",
[5] = "codecompanion"
},
heading = {
icons = { vim.NIL, vim.NIL, vim.NIL, vim.NIL, vim.NIL, vim.NIL }
},
pipe_table = {
border_enabled = false
}
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
- Langage dominant
- Lua
- Étoiles
- 5.2k
- Forks
- 147
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de MeanderingProgrammer/render-markdown.nvim
-
Difficulté 4/5 3-5 jours Accessibilité débutants 57/100
MeanderingProgrammer/render-markdown.nvim#712 ·
Les mainteneurs répondent en général sous 6 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
MeanderingProgrammer/render-markdown.nvim#711 · 1 commentaire ·
Les mainteneurs répondent en général sous 6 jours
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
MeanderingProgrammer/render-markdown.nvim#709 ·
Les mainteneurs répondent en général sous 6 jours
-
bug
Difficulté 4/5 1-2 jours Accessibilité débutants 55/100
MeanderingProgrammer/render-markdown.nvim#706 ·
Les mainteneurs répondent en général sous 6 jours
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
MeanderingProgrammer/render-markdown.nvim#685 ·
Les mainteneurs répondent en général sous 6 jours
Toutes les issues de MeanderingProgrammer/render-markdown.nvim
Issues similaires
-
test-net.lua fails on linuxPeut-être pris @PatrickDahlin l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
[alt:V] discontinuedOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
pterodactyl/game-eggs#665 ·
Les mainteneurs répondent en général sous 1 jour
-
`head_templates` missing for `{{aii-intj}}` and `{{aii-propn}}` (not matched by `HEAD_TAG_RE`)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
tatuylonen/wiktextract#1731 · 1 commentaire ·
-
Data Correction Module - Map / Minimap tbc
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
silverbulletmd/silverbullet#2213 ·
Les mainteneurs répondent en général sous 2 jours