MeanderingProgrammer / render-markdown.nvim

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

bug: invalid column error when openning some markdown files #112

Closed jdhao closed 1 month ago

jdhao commented 1 month ago

Neovim version (nvim -v)

0.10.1

Operating system

macOS

Terminal emulator / GUI

wezterm

Describe the bug

When I open the following markdown file, I see invalid col error constantly.

firenvim.md

Expected behavior

I can view this file without errors.

Healthcheck output

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

markdown.nvim [neovim version] ~

markdown.nvim [configuration] ~

markdown.nvim [nvim-treesitter] ~

markdown.nvim [executables] ~

markdown.nvim [conflicts] ~

Plugin configuration

you can reproduce with the following mini.lua (nvim -u mini.lua firenvim.md)

local plugin_dir = vim.fn.stdpath("data") .. "/lazy"
local lazypath = plugin_dir .. "/lazy.nvim"

if not vim.uv.fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  }
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  spec = {
    {
      "MeanderingProgrammer/markdown.nvim",
      main = "render-markdown",
      opts = {},
      dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
    },
  }
}
)

Confirmations

Additional information

No response

MeanderingProgrammer commented 1 month ago

Hmm, I'm unable to reproduce this with the minimal init and example file.

It may be an issue with an older version of this plugin. Just to double check can you update the plugin and see if the error still occurs?

MeanderingProgrammer commented 1 month ago

I've pushed a change to remove any strictness checks, should prevent these errors from being surfaced to users.

jdhao commented 1 month ago

hey, thanks! Seems that your latest update fixed the invalid col error.