Skip to content

Instantly share code, notes, and snippets.

@yangshaoshun
Last active February 16, 2023 16:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save yangshaoshun/dfd3114d04f27c2436194867122275fb to your computer and use it in GitHub Desktop.
Save yangshaoshun/dfd3114d04f27c2436194867122275fb to your computer and use it in GitHub Desktop.
快速保存网页内容为 markdown 格式

准备

步骤说明

  1. 直接复制网页内容,粘贴到 Typora 内部,还原大多数网页格式(加粗、链接、标题、代码库、引用、图片等)
  2. 保存该 markdown 文件,或者 右键 - copy as markdown 粘贴到其他 markdown 编辑器

效果示范

示例1

示例2

说明

  • 微信公众号文章的图片可以获取到正确地址,但 Typora 内预览有问题。图片识别为:![img](http://mmbiz.qpic.cn/mmbiz_jpg/ice5enJHe2TgibrztREDX7ghviaUFEIx54W3gLdxibC6VnhcdgQn656xG5C8KWYIQAA8fV4JFSfMfK2ultLhY2tS4g/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1) 在 Typora、MWeb 中无法正常显示,GitHub Issue 中正常。
  • 该问题已提交 Typora(Unable to show image pasting from Wechat articles · Issue #720 · typora/typora-issues)
  • 去除链接末尾中的字符串&tp=webp即可
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment