对于经常使用Markdown写文章的你来说,是不是都有过如下操作:
假设:我们要在 Markdown编辑器里面插入一个带标题的链接。
操作:先去目标网页复制下标题,回到 Markdown编辑器粘贴,回去复制网页链接,最后回到 Markdown编辑器 粘贴url地址。然后补全 Markdown 格式。
Chrome的一个插件能够帮你一次性完成以上操作,而且粘贴时就是一个完整的Markdown格式标题链接样式。它就是上图工具 - Copy as Markdown
原文使用介绍
Copy Link or Image as Markdown code
Copy as Markdown is a Chrome extension which can help you copy the following things as Markdown to your system clipboard:
- Current Tab as Link
- A Link on the Page
- If the link has an Image in it, the copied Markdown will take that image as link text.
- An Image on the Page
- All Tabs as a List of Links
- Select Tabs for a List of Links
You can also customize keyboards shortcuts to copy link of tab(s) without a single mouse click.
Known Issues
- Cannot grab image.alt when copying image
- On Microsoft Windows, copied page link doesn't come with the link title
- (more issues in the issue tracker)
Source Code (MIT License)
https://github.com/chitsaou/copy-as-markdown
使用介绍图
设置快捷键
-
进入到Chrome的扩展程序界面