Easy Web Page to Markdown

Convert selected HTML to Markdown

目前为 2024-02-08 提交的版本。查看 最新版本

作者
shiquda
评分
0 0 0
版本
0.1.0
创建于
2024-02-08
更新于
2024-02-08
大小
7.0 KB
许可证
AGPL-3.0
适用于
所有网站

# Easy Web Page to Markdown

[English](#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](Clip_2024-02-08_15-13-03.png)
- **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](Clip_2024-02-08_15-14-33.png)

### 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, move the mouse to select a location and use the mouse wheel to zoom in and out of the selection area. The content within the red box will be converted.
5. After selection, you can edit the converted Markdown code on the left, and the right side will show its preview.
6. You can either copy the Markdown to your clipboard or download it as a .md file.

------

## 简体中文

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

### 特性

- **框选工具**:只需使用鼠标选择你想转换的 HTML 元素。
![框选工具](Clip_2024-02-08_15-13-03.png)
- **Markdown 预览**:转换后,将出现一个模态框,显示你选定的网页元素的 Markdown 转换结果。同时可以编辑 Markdown 并查看实时预览。
- **复制到剪贴板**:只需点击一下,你就可以将转换后的 Markdown 复制到你的剪贴板。
- **下载为 Markdown 文件**:可以将转换后的 Markdown 下载为 .md 文件。
![转换展示](Clip_2024-02-08_15-14-33.png)

### 使用方法

1. 安装用户脚本管理器,如 Tampermonkey 或 Greasemonkey。
2. 将此脚本添加到你的用户脚本管理器。
3. 在任何网页,按 `Ctrl + M` ,或者在脚本管理器的菜单打开功能,开始选择 HTML 元素。
4. 选择时,移动鼠标来选定位置,用鼠标滚轮来缩放选择区域的大小,红色方框内的部分即为将被转换的内容。
5. 选择后,可以在左侧对转换后的 Markdown 代码进行编辑,右侧为其预览。
6. 可以将 Markdown 复制到剪贴板,也可以将其下载为 .md 文件。