instant-markdown-d
instant-markdown-d copied to clipboard
The plug can't produce id for title
Problem summary
The plug can't produce id for title
Expected
Environment Information
- OS:windows7
- Vim / Neovim version:vim8.1.24
- Browser:firefox
Steps to reproduce the issue (required)
Start with command you used to install instant-markdown-d. Use a
minimal.vimrc
to reproduce the issue and open your markdown file as:
vim -u minimal.vimrc my_markdown_file.md
Provide the debug output (required)
Run cat my_markdown_file.md | instant-markdown-d --mathjax --debug. It
generates a debug.html file - attach it here. Also, paste the console output
here:
Screen shot (if possible)

I don't know much about vim and plug,please get back to me quickly,Let me know whether the plug does not have this function or there is a bug
@wuxinyiwu Can you share the markdown source you were trying to render?
@ashwinvis this is my markdown source,i am not sure your plugin can create id,or i have a bug
<!-- vim-markdown-toc GFM -->
* [测试网额你的44444444](#测试网额你的44444444)
* [真的是这样吗](#真的是这样吗)
* [7777d](#7777d)
* [真的吗](#真的吗)
* [哈哈哈哈](#哈哈哈哈)
* [dddddddddddd](#dddddddddddd)
* [三级标题](#三级标题)
* [四级标题](#四级标题)
* [gggg](#gggg)
<!-- vim-markdown-toc -->
<!-- vim-markdown-toc -->
# 测试网额你的44444444
dsds
## 真的是这样吗
444444
# 7777d
我的错误,让你手上了444
# 真的吗
# 哈哈哈哈
## dddddddddddd
### 三级标题
#### 四级标题
# gggg
@wuxinyiwu The plugin uses instant-markdown-d which relies on Markdown-it to render markdown. See https://markdown-it.github.io/ where I don't see any id= tags rendered. You may also check https://markdown-it.github.io/markdown-it/ for docs. If it is supported, pull-request are welcome at instant-markdown-d repo.
Thank you for your reply,i known the plugin can not create id for title,if i have time,i may be try complete the function,because if i have toc,i need id to jump,unfortunately the plugin did not realize this function。
I see. See also:
- https://www.npmjs.com/package/markdown-it-table-of-contents/
- https://www.npmjs.com/package/markdown-it-anchor
Somebody added support for this in #103