MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.38k stars 33 forks source link

bug: parenthesis should be in the same line #106

Closed azzamsa closed 1 month ago

azzamsa commented 1 month ago

Neovim version (nvim -v)

v0.10.0

Operating system

Fedora Linux 40 (Workstation Edition) x86_6

Terminal emulator / GUI

neovide 0.13.3

Describe the bug

Some parentheses should be in the same line.

image

Use this text to reproduce:

### šŸšœ Refactor

- Introduce `typos` ([a1ceeba](https://github.com/BiznetGIO/RESTKnot/commit/a1ceeba8a4c8edbdafbcd04a6b7d1014b00c705f))
- Introcude dprint ([ae3f0fd](https://github.com/BiznetGIO/RESTKnot/commit/ae3f0fda1d3c3d9d6421b84deb4c9aef03479a61))
- Docker-compose supports shorter filename ([cb136a9](https://github.com/BiznetGIO/RESTKnot/commit/cb136a901e4351c0f223f607e0713aa4a4b1dd24))

### šŸ“š Documentation

- Introduce `git-cliff` ([c5b3cd8](https://github.com/BiznetGIO/RESTKnot/commit/c5b3cd8cba808474842bcb1e04e6bc9145fa2531))
- Bump license year ([1a3372e](https://github.com/BiznetGIO/RESTKnot/commit/1a3372efa2715d5d093f0862123d4fd626c7af52))

### šŸ—ļø Build

- Make the project 100% reproducable ([be0b768](https://github.com/BiznetGIO/RESTKnot/commit/be0b7688c3184a36ab8e8ad69dbf489e830855ac))
- Refactor just recipe ([0e7839c](https://github.com/BiznetGIO/RESTKnot/commit/0e7839c643919112ae993fff135ce5c5848e4dcd))
- Ignore more directory ([be705c2](https://github.com/BiznetGIO/RESTKnot/commit/be705c2a20ca78187bd7db2aebae8e37f60bde3b))
- Example config file is missing ([1af15cd](https://github.com/BiznetGIO/RESTKnot/commit/1af15cd31581bcfa5d822593e92c49a85dd32696))

Expected behavior

Parentheses (marked by purple arrow) should be in the same line (as the green arrow).

Healthcheck output


==============================================================================
render-markdown: require("render-markdown.health").check()

markdown.nvim [neovim version] ~
- OK Version >= 0.10

markdown.nvim [configuration] ~
- OK valid

markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
- WARNING latex: parser not installed
  - ADVICE:
    - Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }

markdown.nvim [executables] ~
- WARNING latex2text: not installed
  - ADVICE:
    - Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }

markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: not installed

Plugin configuration

Don't worry, other required deps are specified somewhere else.

    {
        "MeanderingProgrammer/markdown.nvim",
        -- main module, see https://lazy.folke.io/spec
        main = "render-markdown",
        opts = {},
        dependencies = { "nvim-treesitter/nvim-treesitter" },
    },

Confirmations

Additional information

šŸ” āÆ nsysteminfo
nvim: NVIM v0.10.0
neovide: neovide 0.13.3
---
OS: Fedora Linux 40 (Workstation Edition) x86_64
DE: GNOME 46.3.1
WM: Mutter (Wayland)
MeanderingProgrammer commented 1 month ago

Is a known neovim issue, concealed text still counts when creating line breaks: https://github.com/neovim/neovim/issues/14409