[{"data":1,"prerenderedAt":235},["ShallowReactive",2],{"i-lucide:menu":3,"i-lucide:grip":8,"i-lucide:chevron-right":10,"i-lucide:moon":12,"i-lucide:sun":14,"i-material-symbols:language":16,"i-lucide:chevron-down":18,"i-lucide:shield-check":20,"i-lucide:mail":22,"i-tabler:markdown":24,"i-lucide:code-xml":26,"i-lucide:film":28,"i-lucide:file-text":30,"i-lucide:box":32,"i-lucide:code-2":34,"i-lucide:image":35,"i-lucide:square-sigma":37,"i-lucide:gamepad-2":39,"i-lucide:sparkles":41,"i-lucide:graduation-cap":43,"tool-content-markdown-fromHtml":45,"i-lucide:upload":195,"i-lucide:trash-2":197,"i-lucide:file-code":199,"i-lucide:file-down":201,"i-lucide:code":203,"i-lucide:scissors":205,"i-lucide:refresh-cw":207,"i-lucide:message-square":209,"i-lucide:shield":211,"i-lucide:zap":213,"i-lucide:clipboard-paste":215,"i-lucide:wand-2":217,"i-lucide:copy":219,"i-lucide:pen-line":221,"i-lucide:git-branch":223,"i-lucide:share-2":225,"i-lucide:wand-sparkles":227,"i-lucide:file-code-2":228,"i-lucide:diff":231,"i-lucide:arrow-up-right":233},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 5h16M4 12h16M4 19h16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"5\" r=\"1\"\u002F>\u003Ccircle cx=\"12\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"12\" r=\"1\"\u002F>\u003Ccircle cx=\"12\" cy=\"19\" r=\"1\"\u002F>\u003Ccircle cx=\"19\" cy=\"19\" r=\"1\"\u002F>\u003Ccircle cx=\"5\" cy=\"19\" r=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":11},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m9 18l6-6l-6-6\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":13},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":15},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"4\"\u002F>\u003Cpath d=\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":17},"\u003Cpath fill=\"currentColor\" d=\"M8.125 21.213q-1.825-.788-3.187-2.15t-2.15-3.188T2 11.988t.788-3.875t2.15-3.175t3.187-2.15T12.013 2t3.875.788t3.175 2.15t2.15 3.175t.787 3.875t-.787 3.887t-2.15 3.188t-3.175 2.15t-3.875.787t-3.888-.787M12 19.95q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075T12 19.95m-2.6-.4q-.45-.825-.787-1.713T8.05 16H5.1q.725 1.25 1.813 2.175T9.4 19.55m5.2 0q1.4-.45 2.488-1.375T18.9 16h-2.95q-.225.95-.562 1.838T14.6 19.55M4.25 14h3.4q-.075-.5-.112-.987T7.5 12t.038-1.012T7.65 10h-3.4q-.125.5-.187.988T4 12t.063 1.013t.187.987m5.4 0h4.7q.075-.5.113-.987T14.5 12t-.038-1.012T14.35 10h-4.7q-.075.5-.112.988T9.5 12t.038 1.013t.112.987m6.7 0h3.4q.125-.5.188-.987T20 12t-.062-1.012T19.75 10h-3.4q.075.5.113.988T16.5 12t-.038 1.013t-.112.987m-.4-6h2.95q-.725-1.25-1.812-2.175T14.6 4.45q.45.825.788 1.713T15.95 8M10.1 8h3.8q-.3-1.1-.775-2.075T12 4.05q-.65.9-1.125 1.875T10.1 8m-5 0h2.95q.225-.95.563-1.838T9.4 4.45Q8 4.9 6.912 5.825T5.1 8\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":19},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":21},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"\u002F>\u003Cpath d=\"m9 12l2 2l4-4\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":23},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"m22 7l-8.991 5.727a2 2 0 0 1-2.009 0L2 7\"\u002F>\u003Crect width=\"20\" height=\"16\" x=\"2\" y=\"4\" rx=\"2\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":25},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"\u002F>\u003Cpath d=\"M7 15V9l2 2l2-2v6m3-2l2 2l2-2m-2 2V9\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":27},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m18 16l4-4l-4-4M6 8l-4 4l4 4m8.5-12l-5 16\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":29},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"\u002F>\u003Cpath d=\"M7 3v18M3 7.5h4M3 12h18M3 16.5h4M17 3v18m0-13.5h4m-4 9h4\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":31},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"\u002F>\u003Cpath d=\"M14 2v5a1 1 0 0 0 1 1h5M10 9H8m8 4H8m8 4H8\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":33},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z\"\u002F>\u003Cpath d=\"m3.3 7l8.7 5l8.7-5M12 22V12\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":27},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":36},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"\u002F>\u003Ccircle cx=\"9\" cy=\"9\" r=\"2\"\u002F>\u003Cpath d=\"m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":38},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"\u002F>\u003Cpath d=\"M16 8.9V7H8l4 5l-4 5h8v-1.9\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":40},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 11h4M8 9v4m7-1h.01M18 10h.01m-.69-5H6.68a4 4 0 0 0-3.978 3.59l-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258q-.01-.075-.017-.151A4 4 0 0 0 17.32 5\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":42},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4\"\u002F>\u003Ccircle cx=\"4\" cy=\"20\" r=\"2\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":44},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0zM22 10v6\"\u002F>\u003Cpath d=\"M6 12.5V16a6 3 0 0 0 12 0v-3.5\"\u002F>\u003C\u002Fg>",{"strings":46,"features":93,"steps":124,"useCases":147,"articleHtml":192},{"zh":47,"en":70},{"heroLead":48,"inputLabel":49,"outputLabel":50,"inputPlaceholder":51,"outputPlaceholder":52,"uploadHtml":53,"convertAuto":54,"copy":55,"copied":56,"downloadMd":57,"clear":58,"emptyHint":59,"faq1q":60,"faq1a":61,"faq2q":62,"faq2a":63,"faq3q":64,"faq3a":65,"faq4q":66,"faq4a":67,"faq5q":68,"faq5a":69},"粘贴 HTML — 网页源码、复制的文章内容、或富文本编辑器内容 — 立即得到干净的 Markdown。","HTML 输入","Markdown 输出","在这里粘贴你的 HTML，可以是公众号文章、博客、或任何网页的源码。","转换后的 Markdown 会显示在这里。","上传 .html","自动转换","复制 Markdown","已复制！","下载 .md","清空","在左侧粘贴 HTML，转换后的 Markdown 会显示在这里。","支持哪些类型的 HTML？","标准 HTML 标签（标题、段落、列表、表格、引用、代码块、图片、链接）都能干净转换。微信公众号的 HTML 还做了额外的预处理 — figure、code-snippet、引用 section、内联样式都会被清理成标准 GFM Markdown。","内联样式或脚本会被带进 Markdown 吗？","不会。转换前会先剥离 `style`、`script`、`meta`、`link` 标签，并清空所有元素的 style \u002F class 属性。最终的 Markdown 只包含结构性内容。","表格和代码块能保留吗？","能。表格转为 GFM 表格语法（| 分隔）。代码块包裹为 ``` 围栏，会从 'language-js'、'hljs-typescript' 等 class 中识别语言。微信公众号那种用 `br` 分隔的代码片段会被合并成正确的多行代码块。","我的 HTML 会被发到任何服务器吗？","不会。转换使用 Turndown（一个 JavaScript 库）完全在你的浏览器里运行。粘贴的 HTML 和生成的 Markdown 都不会离开你的设备 — 适合处理未公开的草稿和敏感内容。","可以直接粘贴一个网页 URL 来转换吗？","本工具接收的是 HTML 源码而不是 URL。要转换一个网页：打开 → 右键『查看页面源代码』或『检查』→ 复制 HTML → 粘贴到这里。微信公众号文章可以右键『查看源代码』后整段粘贴。",{"heroLead":71,"inputLabel":72,"outputLabel":73,"inputPlaceholder":74,"outputPlaceholder":75,"uploadHtml":76,"convertAuto":77,"copy":78,"copied":79,"downloadMd":80,"clear":81,"emptyHint":82,"faq1q":83,"faq1a":84,"faq2q":85,"faq2a":86,"faq3q":87,"faq3a":88,"faq4q":89,"faq4a":90,"faq5q":91,"faq5a":92},"Paste HTML — webpage source, copied article, or rich-text — and get clean Markdown.","HTML input","Markdown output","Paste your HTML here. You can copy a WeChat article, blog post, or any webpage's source.","Markdown will appear here after conversion.","Upload .html","Auto-convert","Copy Markdown","Copied!","Download .md","Clear","Paste HTML on the left to see the converted Markdown here.","What HTML can this tool handle?","Standard HTML tags (headings, paragraphs, lists, tables, blockquotes, code blocks, images, links) all convert cleanly. WeChat article HTML gets extra preprocessing — figures, code snippets, blockquote sections, and inline styles are normalized into clean GFM Markdown.","Will inline styles or scripts leak into the Markdown?","No. The converter strips `style`, `script`, `meta` and `link` tags before conversion, and removes inline style \u002F class attributes from every element. The resulting Markdown contains only structural content.","Are tables and code blocks preserved?","Yes. Tables convert to GFM table syntax (pipe-delimited). Code blocks are wrapped in ``` fences with language detection from class names like 'language-js' or 'hljs-typescript'. WeChat-style code snippets with `br`-separated lines are joined into proper multi-line code blocks.","Does my HTML get sent anywhere?","No. Conversion uses Turndown (a JavaScript library) running entirely in your browser. The HTML you paste, and the Markdown it produces, never leave your device — safe for confidential drafts and unpublished content.","Can I convert a whole webpage by pasting its URL?","This tool takes raw HTML, not URLs. To convert a webpage: open the page → right-click → \"View Page Source\" or \"Inspect\" → copy the HTML → paste here. For WeChat articles you can right-click and \"View Source\" then paste the entire HTML.",{"zh":94,"en":111},[95,99,103,107],{"icon":96,"title":97,"desc":98},"lucide:wand-sparkles","粘贴即转换","基于 Turndown + GFM，自动清理样式、识别表格和代码块的语言",{"icon":100,"title":101,"desc":102},"lucide:message-square","微信公众号专项优化","识别 figure 包装、合并 br 分隔的代码、剥离冗余 data-* 属性",{"icon":104,"title":105,"desc":106},"lucide:shield","完全浏览器本地","HTML 和生成的 Markdown 都不会发到任何服务器，可在 Network 面板验证",{"icon":108,"title":109,"desc":110},"lucide:zap","自动转换 + 复制 + 下载","边输入边转换，250ms 节流；右上角一键复制或下载 .md",[112,115,118,121],{"icon":96,"title":113,"desc":114},"Paste-and-convert","Built on Turndown + GFM — auto-strips styles, detects table & code-block languages",{"icon":100,"title":116,"desc":117},"WeChat-aware","Unwraps figure containers, merges \u003Cbr>-split code lines, strips redundant data-* attrs",{"icon":104,"title":119,"desc":120},"Fully browser-local","Both your HTML input and the resulting Markdown stay in the browser — verifiable in DevTools",{"icon":108,"title":122,"desc":123},"Auto convert + copy + download","Live conversion debounced 250ms; one-click copy or .md download in the toolbar",{"zh":125,"en":137},[126,130,133],{"icon":127,"title":128,"desc":129},"lucide:clipboard-paste","粘贴 HTML","将 HTML 代码或网页内容粘贴到输入区",{"icon":131,"title":54,"desc":132},"lucide:wand-2","一键转换为标准 Markdown 格式，去除冗余标签",{"icon":134,"title":135,"desc":136},"lucide:copy","复制使用","复制生成的 Markdown，粘贴到任意 Markdown 编辑器使用",[138,141,144],{"icon":127,"title":139,"desc":140},"Paste HTML","Paste HTML code or copied web content into the input area",{"icon":131,"title":142,"desc":143},"Convert Automatically","One click converts to clean Markdown, stripping redundant tags",{"icon":134,"title":145,"desc":146},"Copy & Use","Copy the generated Markdown and paste it into any editor",{"zh":148,"en":173},[149,153,157,161,165,169],{"icon":150,"title":151,"desc":152},"lucide:code","网页内容转 Markdown","将复制的网页 HTML 转为干净的 Markdown，方便二次编辑",{"icon":154,"title":155,"desc":156},"lucide:scissors","提取文章核心内容","去除 HTML 标签和样式，保留纯文本结构用于整理笔记",{"icon":158,"title":159,"desc":160},"lucide:refresh-cw","迁移博客内容","将旧博客的 HTML 文章批量转为 Markdown 以便平台迁移",{"icon":162,"title":163,"desc":164},"lucide:git-branch","纳入版本管理","开发者将 HTML 文档转 Markdown，便于 Git 追踪变更",{"icon":166,"title":167,"desc":168},"lucide:file-text","清理富文本内容","将富文本编辑器导出的 HTML 转为简洁 Markdown 格式",{"icon":170,"title":171,"desc":172},"lucide:mail","转换邮件内容","将 HTML 格式的邮件正文转为 Markdown，便于整理归档",[174,177,180,183,186,189],{"icon":150,"title":175,"desc":176},"Convert Web Content","Turn copied HTML from web pages into clean, editable Markdown",{"icon":154,"title":178,"desc":179},"Extract Article Text","Strip HTML tags and styles, keeping just the readable content structure",{"icon":158,"title":181,"desc":182},"Migrate Blog Posts","Convert old HTML articles to Markdown for a platform migration",{"icon":162,"title":184,"desc":185},"Enable Version Control","Convert HTML docs to Markdown so Git can track meaningful diffs",{"icon":166,"title":187,"desc":188},"Clean Up Rich Text","Transform rich-text editor HTML exports into simple Markdown",{"icon":170,"title":190,"desc":191},"Archive Email Content","Convert HTML email bodies to Markdown for easy archiving and search",{"zh":193,"en":194},"\u003Ch2>为什么在 2026 年还需要一个 HTML → Markdown 转换器？\u003C\u002Fh2>\n\u003Cp>很多内容仍然以 HTML 的形态存在：公众号文章、博客网页、富文本编辑器复制出来的内容、爬虫抓取的页面源码、客户邮件里的正文。当你想\u003Cstrong>把这些内容变成自己的 Markdown 笔记\u003C\u002Fstrong>，或者迁移到一个新的 Markdown 写作平台（Hexo、Hugo、VuePress、Notion…），纯手工整理标签、清理样式、重新排表格是非常折磨的事。\u003C\u002Fp>\n\u003Cp>HTML → Markdown 转换器把这件事降到了&quot;粘贴 → 一键得到 .md&quot;。MeTool 的实现基于成熟的 \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmixmark-io\u002Fturndown\">Turndown\u003C\u002Fa> 库 + GFM 插件，并针对中文创作者最常见的&quot;\u003Cstrong>从微信公众号粘贴 HTML\u003C\u002Fstrong>&quot;场景做了额外的预处理（清理 figure 包装、合并 br 分隔的代码、剥离样式 section…）。\u003C\u002Fp>\n\u003Cp>2026 年的关键差异：所有解析在浏览器里完成，源 HTML 和生成的 Markdown 都不会离开你的设备 — 这对要处理客户合同邮件、内部公告、未发布的博客文章的人非常重要。\u003C\u002Fp>\n\u003Ch2>它能干净处理哪些 HTML？\u003C\u002Fh2>\n\u003Ch3>标准网页 HTML\u003C\u002Fh3>\n\u003Cp>标题（h1~h6）、段落、有序 \u002F 无序列表、链接、强调、图片、引用块 — 所有标准 HTML 元素都能转成对应的 Markdown 语法，结果可读、可编辑、可二次使用。\u003C\u002Fp>\n\u003Ch3>表格（GFM 表格语法）\u003C\u002Fh3>\n\u003Cp>HTML 中的 \u003Ccode>&lt;table&gt;\u003C\u002Fcode> 会转换为标准 GFM 表格（用 \u003Ccode>|\u003C\u002Fcode> 分隔），第一行自动作为表头，对齐方式尽量保留。\u003C\u002Fp>\n\u003Ch3>代码块（带语言识别）\u003C\u002Fh3>\n\u003Cp>转换器会从 \u003Ccode>class=&quot;language-js&quot;\u003C\u002Fcode>、\u003Ccode>class=&quot;hljs-typescript&quot;\u003C\u002Fcode>、\u003Ccode>data-lang\u003C\u002Fcode> 等属性中识别代码块的语言，输出为带语言标记的围栏代码块（\u003Ccode>```js ... ```\u003C\u002Fcode>），方便后续在 Markdown 里继续高亮。\u003C\u002Fp>\n\u003Ch3>微信公众号 HTML（专项优化）\u003C\u002Fh3>\n\u003Cp>MeTool 的转换器内置了对微信公众号 HTML 的特殊规则：\u003C\u002Fp>\n\u003Cul>\n\u003Cli>识别公众号的 \u003Ccode>&lt;figure&gt;\u003C\u002Fcode> 图片包装，提取真实的 \u003Ccode>data-src\u003C\u002Fcode> 链接；\u003C\u002Fli>\n\u003Cli>把公众号那种用 \u003Ccode>&lt;br&gt;\u003C\u002Fcode> 分隔的代码片段合并为正确的多行代码块；\u003C\u002Fli>\n\u003Cli>识别用 \u003Ccode>style=&quot;border-left...&quot;\u003C\u002Fcode> 模拟的引用 section，转为 Markdown 引用块；\u003C\u002Fli>\n\u003Cli>剥离公众号生成的大量 \u003Ccode>data-*\u003C\u002Fcode>、\u003Ccode>style\u003C\u002Fcode>、\u003Ccode>class\u003C\u002Fcode> 等冗余属性，让 Markdown 输出干净。\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>隐私模型：粘贴的 HTML 永远不会离开浏览器\u003C\u002Fh2>\n\u003Cp>市面上大部分&quot;在线 HTML 转 Markdown&quot;工具会把你粘贴的 HTML 发到自己的服务器上做处理，这意味着你的客户邮件正文、未公开的博客文章、内部知识库截取的内容都会经过别人的服务器 — 即使工具承诺&quot;不存储&quot;，也无法验证。\u003C\u002Fp>\n\u003Cp>MeTool 选择了完全不同的实现：Turndown 的 JavaScript 包通过浏览器加载，HTML 解析、规则匹配、Markdown 生成全部在你的浏览器内存里完成。\u003Cstrong>没有任何 fetch \u002F XHR 请求\u003C\u002Fstrong>把你的 HTML 内容发出去 — 你可以在浏览器开发者工具的 Network 面板亲自验证。这让它成为处理敏感内容的安全选择。\u003C\u002Fp>\n\u003Ch2>使用建议：复杂 HTML 的最佳粘贴姿势\u003C\u002Fh2>\n\u003Col>\n\u003Cli>\u003Cstrong>从网页粘贴：\u003C\u002Fstrong>右键 → &quot;查看页面源代码&quot;，找到你想要的内容那段 HTML，复制后粘贴到本页面输入框。如果只想要一篇文章正文，建议先在源代码里截出 \u003Ccode>&lt;article&gt;\u003C\u002Fcode> 或 \u003Ccode>&lt;div class=&quot;content&quot;&gt;\u003C\u002Fcode> 这一段，避免把页眉、侧边栏、广告也带进来。\u003C\u002Fli>\n\u003Cli>\u003Cstrong>从微信公众号粘贴：\u003C\u002Fstrong>在浏览器中打开公众号文章，右键 → &quot;查看源代码&quot;，复制整个 HTML 粘贴进来。MeTool 会自动找到 \u003Ccode>#js_content\u003C\u002Fcode> 容器，剥离样式后转成 Markdown。\u003C\u002Fli>\n\u003Cli>\u003Cstrong>从富文本编辑器粘贴：\u003C\u002Fstrong>很多富文本编辑器（Notion、飞书、语雀）支持复制为 HTML。把粘贴板里的 HTML 直接粘到本工具，会得到比&quot;复制为 Markdown&quot;更可靠的结果（特别是表格和代码块）。\u003C\u002Fli>\n\u003Cli>\u003Cstrong>转换后再润色：\u003C\u002Fstrong>HTML → Markdown 是一个&quot;\u003Cstrong>清洗\u003C\u002Fstrong>&quot;过程，转换后建议把 .md 下载到本地，用 \u003Ca href=\"\u002Fmarkdown\u002Fedit\u002F\">Markdown 编辑器\u003C\u002Fa>做最后一遍人工校对，再发布。\u003C\u002Fli>\n\u003C\u002Fol>\n","\u003Ch2>Why an HTML → Markdown converter is still essential in 2026\u003C\u002Fh2>\n\u003Cp>A huge amount of content still lives as HTML: WeChat articles, blog posts, content copied from rich-text editors, scraped page source, customer emails. When you want to \u003Cstrong>turn that content into your own Markdown notes\u003C\u002Fstrong>, or migrate articles to a new Markdown-based platform (Hexo, Hugo, VuePress, Notion…), hand-cleaning tags, stripping inline styles and rebuilding tables is genuinely painful.\u003C\u002Fp>\n\u003Cp>An HTML → Markdown converter reduces the whole thing to &quot;paste → get .md back&quot;. MeTool's implementation is built on the proven \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmixmark-io\u002Fturndown\">Turndown\u003C\u002Fa> library + GFM plugin, with extra preprocessing for the workflow Chinese content creators hit most often: \u003Cstrong>pasting WeChat article HTML\u003C\u002Fstrong> (figure unwrapping, \u003Cbr>-separated code merging, style-section blockquote detection…).\u003C\u002Fp>\n\u003Cp>The key 2026 differentiator: parsing happens entirely in your browser. The source HTML and the resulting Markdown never leave your device — important when you're processing client emails, internal announcements, or unpublished blog drafts.\u003C\u002Fp>\n\u003Ch2>What kind of HTML does it handle cleanly?\u003C\u002Fh2>\n\u003Ch3>Standard webpage HTML\u003C\u002Fh3>\n\u003Cp>Headings (h1–h6), paragraphs, ordered \u002F unordered lists, links, emphasis, images, blockquotes — every standard HTML element converts to its Markdown equivalent. The output is readable, editable, and immediately reusable.\u003C\u002Fp>\n\u003Ch3>Tables (GFM table syntax)\u003C\u002Fh3>\n\u003Cp>HTML \u003Ccode>&lt;table&gt;\u003C\u002Fcode> elements convert to standard GFM tables (pipe-delimited), with the first row treated as the header and column alignment preserved when possible.\u003C\u002Fp>\n\u003Ch3>Code blocks (with language detection)\u003C\u002Fh3>\n\u003Cp>The converter inspects \u003Ccode>class=&quot;language-js&quot;\u003C\u002Fcode>, \u003Ccode>class=&quot;hljs-typescript&quot;\u003C\u002Fcode>, \u003Ccode>data-lang\u003C\u002Fcode> and similar attributes to detect the language, emitting fenced code blocks with the language tag (\u003Ccode>```js ... ```\u003C\u002Fcode>) so syntax highlighting still works downstream.\u003C\u002Fp>\n\u003Ch3>WeChat article HTML (special handling)\u003C\u002Fh3>\n\u003Cp>The converter ships with WeChat-aware rules:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Detects WeChat's \u003Ccode>&lt;figure&gt;\u003C\u002Fcode> image wrappers and pulls out the real \u003Ccode>data-src\u003C\u002Fcode> URL;\u003C\u002Fli>\n\u003Cli>Merges WeChat-style code snippets where lines are separated by \u003Ccode>&lt;br&gt;\u003C\u002Fcode> into proper multi-line code blocks;\u003C\u002Fli>\n\u003Cli>Recognises the \u003Ccode>style=&quot;border-left...&quot;\u003C\u002Fcode> sections WeChat uses to fake blockquotes and converts them back to Markdown blockquotes;\u003C\u002Fli>\n\u003Cli>Strips the heavy \u003Ccode>data-*\u003C\u002Fcode>, \u003Ccode>style\u003C\u002Fcode> and \u003Ccode>class\u003C\u002Fcode> attributes WeChat injects, so the resulting Markdown is clean.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Privacy model: pasted HTML never leaves your browser\u003C\u002Fh2>\n\u003Cp>Most &quot;online HTML to Markdown&quot; tools send your pasted HTML to their server for processing, which means your customer emails, unpublished blog posts, and internal knowledge fragments all travel through someone else's machine — and even if the tool promises &quot;we don't store it&quot;, you can't verify that.\u003C\u002Fp>\n\u003Cp>MeTool takes a fundamentally different approach: the Turndown library is loaded into your browser, and parsing, rule matching, and Markdown generation all happen in your browser's memory. \u003Cstrong>No fetch\u002FXHR request sends your HTML out\u003C\u002Fstrong> — you can confirm this for yourself in the browser DevTools Network panel. That makes it a safe choice for sensitive material.\u003C\u002Fp>\n\u003Ch2>Tips: how to paste complex HTML for the best results\u003C\u002Fh2>\n\u003Col>\n\u003Cli>\u003Cstrong>From a webpage:\u003C\u002Fstrong> right-click → &quot;View Page Source&quot;, find the chunk of HTML you want, copy and paste here. If you only want one article body, narrow your copy to the \u003Ccode>&lt;article&gt;\u003C\u002Fcode> or \u003Ccode>&lt;div class=&quot;content&quot;&gt;\u003C\u002Fcode> region — that avoids dragging in headers, sidebars and ads.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>From a WeChat article:\u003C\u002Fstrong> open the article in your browser, right-click → &quot;View Source&quot;, copy the full HTML and paste here. MeTool automatically locates the \u003Ccode>#js_content\u003C\u002Fcode> container, strips the styling, and converts what's inside.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>From a rich-text editor:\u003C\u002Fstrong> Notion, Lark, Yuque and similar editors support &quot;copy as HTML&quot;. Pasting that HTML here usually yields more reliable results than the editor's own &quot;copy as Markdown&quot; option (especially for tables and code blocks).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Polish after converting:\u003C\u002Fstrong> treat HTML → Markdown as a \u003Cstrong>cleanup pass\u003C\u002Fstrong>. Once you have the .md, open it in the \u003Ca href=\"\u002Fmarkdown\u002Fedit\u002F\">Markdown editor\u003C\u002Fa> for a final human review before publishing.\u003C\u002Fli>\n\u003C\u002Fol>\n",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":196},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":198},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":200},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"\u002F>\u003Cpath d=\"M14 2v5a1 1 0 0 0 1 1h5m-10 4.5L8 15l2 2.5m4-5l2 2.5l-2 2.5\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":202},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"\u002F>\u003Cpath d=\"M14 2v5a1 1 0 0 0 1 1h5m-8 10v-6m-3 3l3 3l3-3\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":204},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 18l6-6l-6-6M8 6l-6 6l6 6\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":206},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"6\" cy=\"6\" r=\"3\"\u002F>\u003Cpath d=\"M8.12 8.12L12 12m8-8L8.12 15.88\"\u002F>\u003Ccircle cx=\"6\" cy=\"18\" r=\"3\"\u002F>\u003Cpath d=\"M14.8 14.8L20 20\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":208},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8\"\u002F>\u003Cpath d=\"M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16\"\u002F>\u003Cpath d=\"M8 16H3v5\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":210},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":212},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":214},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":216},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M11 14h10M16 4h2a2 2 0 0 1 2 2v1.344M17 18l4-4l-4-4\"\u002F>\u003Cpath d=\"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113\"\u002F>\u003Crect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":218},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m21.64 3.64l-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72M14 7l3 3M5 6v4m14 4v4M10 2v2M7 8H3m18 8h-4M11 3H9\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":220},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Crect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cpath d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":222},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M13 21h8m.174-14.188a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":224},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M15 6a9 9 0 0 0-9 9V3\"\u002F>\u003Ccircle cx=\"18\" cy=\"6\" r=\"3\"\u002F>\u003Ccircle cx=\"6\" cy=\"18\" r=\"3\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":226},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Ccircle cx=\"18\" cy=\"5\" r=\"3\"\u002F>\u003Ccircle cx=\"6\" cy=\"12\" r=\"3\"\u002F>\u003Ccircle cx=\"18\" cy=\"19\" r=\"3\"\u002F>\u003Cpath d=\"m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":218},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":229,"hidden":230},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4\"\u002F>\u003Cpath d=\"M14 2v4a2 2 0 0 0 2 2h4M5 12l-3 3l3 3m4 0l3-3l-3-3\"\u002F>\u003C\u002Fg>",true,{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":232},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 3v14m-7-7h14M5 21h14\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":234},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M7 7h10v10M7 17L17 7\"\u002F>",1782799334520]