https://github.com/pdmaker/markdown-to-html
Markdown to html, MD to html, also can html to markdown
https://github.com/pdmaker/markdown-to-html
formatter html markdown
Last synced: about 1 year ago
JSON representation
Markdown to html, MD to html, also can html to markdown
- Host: GitHub
- URL: https://github.com/pdmaker/markdown-to-html
- Owner: pdmaker
- Created: 2024-11-15T08:18:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-02T02:18:59.000Z (over 1 year ago)
- Last Synced: 2025-03-24T15:52:36.039Z (over 1 year ago)
- Topics: formatter, html, markdown
- Language: HTML
- Homepage: https://md2html.com
- Size: 202 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MD2HTML - Markdown & HTML Converter
一个简单但功能强大的在线 Markdown 和 HTML 互转工具。
## 功能特点
- 🔄 双向转换:支持 Markdown 转 HTML 和 HTML 转 Markdown
- 🌓 深色/浅色主题切换
- 🌐 支持中英文界面切换
- 🧹 自动清理引用标记功能
- 📋 便捷的复制功能
- 💻 完全在浏览器端运行,无需后端服务
## 技术栈
- HTML5
- CSS3
- JavaScript
- [Marked.js](https://marked.js.org/) - Markdown 解析器
- [Turndown](https://github.com/mixmark-io/turndown) - HTML 转 Markdown 工具
## 快速开始
1. 克隆仓库:
```bash
git clone https://github.com/yourusername/md2html.git
```
2. 打开项目目录:
```bash
cd md2html
```
3. 使用任意 Web 服务器运行项目,例如:
```bash
npx serve
```
4. 在浏览器中访问 `http://localhost:3000`
## 使用说明
1. 选择转换模式(Markdown 转 HTML 或 HTML 转 Markdown)
2. 在左侧输入框中粘贴源代码
3. 点击"转换"按钮
4. 在右侧查看转换结果
5. 使用"复制输出"按钮复制转换后的内容
## 自定义设置
- 切换深色/浅色主题
- 切换中英文界面
- 选择是否移除引用标记
## 贡献指南
欢迎提交 Pull Requests 来改进这个项目。
## 许可证
MIT License - 查看 [LICENSE](LICENSE) 文件了解详情
## 联系方式
如有问题或建议,请通过以下方式联系:
- 提交 Issue(推荐)
- 发送邮件至:[hi@md2html.com](mailto:hi@md2html.com)
## 致谢
感谢以下开源项目:
- Marked.js
- Turndown