Skip to content

Zhihu-Render

Choose a tag to compare

@marvel084 marvel084 released this 14 Sep 11:39
· 13 commits to main since this release

Markdown渲染为HTML支持知乎编辑器上传的脚本

下载对应系统的二进制程序即可使用

./zhihu_render input.md -ihe

本脚本提供以下参数

  • --image,-i:图片渲染为<img>,供知乎编辑器上传
  • --heading,-h:HTML中去除一级标题,其余标题增加一级(h2->h1, h3->h2)
  • --equrl,-e:公式渲染为知乎支持的<img>(2020年风格)
./zhihu_render test.md -ihe
  • 2024/09/16 更新:图片保留md格式会导致分割线前的图片不被知乎编辑器识别,已全改为<img>标签