Skip to content

Commit 27a0390

Browse files
committed
Update links
1 parent d227c32 commit 27a0390

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See <https://vimhelp.org/helphelp.txt.html#help-writing> or [`@nanotree`'s proje
1919
I think preserving these features and characteristics of vimdoc for documentation of vim plugins is important.
2020

2121
Writing documentation in Markdown and converting it to vimdoc is not a novel idea.
22-
[`@mjlbach`](https://github.com/mjlbach){#reference} has already implemented a neovim treesitter based markdown to vimdoc converter that works fairly well.
22+
[`@mjlbach`](https://github.com/mjlbach) has already implemented a neovim treesitter based markdown to vimdoc converter that works fairly well.
2323
See [mjlbach/babelfish.nvim](https://github.com/mjlbach/babelfish.nvim) for more information.
2424
This approach is close to ideal. There are no dependencies ( except for the Markdown treesitter parser ). While it appears that the markdown parser may cause crashes, I have not experienced any issues in my use. It is neovim only but you can use this on github actions even for a vim plugin documentation.
2525

scripts/panvimdoc.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,7 @@ function Strikeout(s)
203203
end
204204

205205
function Link(s, tgt, tit, attr)
206-
if attr.id == "reference" then
207-
links[#links + 1] = { stringify(meta.project) .. "-" .. s:gsub("%s", "-"), tgt }
208-
return "|" .. stringify(meta.project) .. "-" .. s:gsub("%s", "-") .. "|"
209-
elseif string.starts_with(tgt, "https://neovim.io/doc/") then
206+
if string.starts_with(tgt, "https://neovim.io/doc/") then
210207
if string.starts_with(s, "`") and string.ends_with(s, "`") then
211208
return "|" .. s .. "|"
212209
else

0 commit comments

Comments
 (0)