Greasy Fork is available in English.

Easy Web Page to Markdown

Convert selected HTML to Markdown

Tác giả
shiquda
Cài đặt hàng ngày
0
Số lần cài đặt
97
Đánh giá
1 0 0
Phiên bản
0.3.6
Đã tạo
08-02-2024
Đã cập nhật
01-03-2024
Giấy phép
AGPL-3.0
Áp dụng cho
Tất cả trang web

Easy Web Page to Markdown

English | 简体中文

English

"Easy Web Page to Markdown" is a user script that allows you to convert selected HTML from any web page into Markdown format. This is particularly useful for developers, content creators, or anyone who frequently needs to convert HTML content to Markdown.

Features

  • Selection Tool: Simply use your mouse to select the HTML element you wish to convert. Selection Tool
  • Markdown Preview: After conversion, a modal will appear displaying the Markdown equivalent of your selected HTML. It also provides a live preview of the Markdown rendering.
  • Copy to Clipboard: With just a click, you can copy the converted Markdown to your clipboard.
  • Download as Markdown File: You can also download the converted Markdown as a .md file. Convert Result

Usage

  1. Install a user script manager, such as Tampermonkey or Greasemonkey.
  2. Add this script to your user script manager.
  3. On any webpage, press Ctrl + M or open the function from the script manager's menu to start selecting HTML elements.
  4. During selection, follow the guide to select elements using the mouse wheel or arrow keys.
  5. After selection, you can edit the converted Markdown code on the left, with a preview available on the right.
  6. You can either copy the Markdown to your clipboard, download it as a .md file, or configure the code to import it into Obsidian (using Obsidian Advanced URI).

简体中文

"Easy Web Page to Markdown" 是一个用户脚本,允许你将任何网页上选定的 HTML 转换为 Markdown 格式。这对于开发人员、内容创作者或经常需要将 HTML 内容转换为 Markdown 的任何人来说都非常有用。

特性

  • 框选工具:只需使用鼠标选择你想转换的 HTML 元素。 框选工具
  • Markdown 预览:转换后,将出现一个模态框,显示你选定的网页元素的 Markdown 转换结果。同时可以编辑 Markdown 并查看实时预览。
  • 复制到剪贴板:只需点击一下,你就可以将转换后的 Markdown 复制到你的剪贴板。
  • 下载为 Markdown 文件:可以将转换后的 Markdown 下载为 .md 文件。 转换展示

使用方法

  1. 安装用户脚本管理器,如 Tampermonkey 或 Greasemonkey。
  2. 将此脚本添加到你的用户脚本管理器。
  3. 在任何网页,按 Ctrl + M ,或者在脚本管理器的菜单打开功能,开始选择 HTML 元素。
  4. 选择时,根据提示信息,使用鼠标滚轮或者方向键来选择元素。
  5. 选择后,可以在左侧对转换后的 Markdown 代码进行编辑,右侧为其预览。
  6. 可以将 Markdown 复制到剪贴板,也可以将其下载为 .md 文件,或者在代码中配置导入到Obsidian(使用Obsidian Advanced URI)。