我有一个标记文件,我想在命令行上使用remarkable生成html (即,作为构建脚本的一部分)。
我的markdown文件中的TOC模仿了markdown-toc生成的toc,即它看起来是这样的:
<!-- toc -->
- [User Guide](#user-guide)
- [Configuration](#configuration)
<!-- tocstop -->
## user-guide
blah
# configuration
blah当我将此代码添加到test.md并运行以下命令时:
remarkable test.md >test.html
我明白了:

也就是说,TOC不是由卓越呈现的。
有人能给点建议吗?我只是简单地寻找这些链接,以直接转到呈现的html中的各个部分。
发布于 2019-07-29 23:30:35
我想通了--使用了不同的library!
步骤:
npm install markdown-to-html -g
markdown test.md > test.html

唯一的缺点--这个工具似乎不能转换html (评论或图片)。不过,解决这个问题很容易。
https://stackoverflow.com/questions/57256815
复制相似问题