qijixiaoshu4 downloadsExport Markdown notes as standalone HTML documents with customizable inline CSS styles and presets for publishing platforms.
Export Markdown notes as standalone HTML documents with customizable inline CSS styles and reusable presets, tailored for rich-text publishing platforms such as WeChat Official Accounts (微信公众号).
Inline HTML converts your Markdown notes (including extended syntax such as ==highlight== and task lists) into clean, self-contained HTML documents using <section>, <p>, and single-layer <span> inline styles.
.inline-html-preset.json files.{主色调}, {正文色}) with a built-in color picker and click-to-copy variable placeholders.<section>, <p>, and inline <span> styles (bold, italic, boldItalic, strikethrough, highlight) for paragraphs, headings (H1–H6), unordered lists, ordered lists (13 numbering formats including Latin, Roman, Chinese numerals, and circled numbers), task lists, blockquotes, and dividers..html files directly alongside the source note inside your vault or to a unified custom directory (vault-relative or desktop OS absolute path).Note (
isDesktopOnly: true): Desktop-only because exporting to custom directories outside the vault utilizes Node.jsnode:fs/promisesandnode:path.
Inline HTML 是一款面向排版发布工作流(如微信公众号等不支持外链样式表的富文本平台)的插件。它能够识别 Markdown 常用及扩展语法,按照你在设置工作台中自定义的内联 CSS 样式与预设方案,将笔记一键导出为结构干净的独立 .html 文档。
.inline-html-preset.json),方便在不同知识库或团队成员之间复用排版规范。{主色调}、{标题色}、{正文色}),在任意 CSS 输入框或分割线颜色中引用即可全局生效。{变量名} 标签功能,并对未定义变量给出醒目提示。H1–H6)、无序列表、有序列表、任务列表、引用块、分割线。<section style="..."><p style="...">...</p></section> 结构,行内修饰自动拍平合并为单层 <span style="...">,避免嵌套样式冲突。==...==)**的内联 CSS,同一处文字叠加多种修饰时自动按优先级合并样式。一/二/三、壹/贰/叁、带圈数字、反白带圈数字、括号字母、数字键帽 Emoji)及自定义后缀。[[...]]、行内公式等未适配语法自动降级或附带 HTML 注释提示。.html 文件导出时自动覆盖更新)。你可以通过以下任意一种方式将 .md 笔记导出为 HTML:
Ctrl + P(macOS 为 Cmd + P)打开命令面板,执行 「Inline HTML: 导出当前笔记为 HTML」,也可在快捷键设置中为其绑定专属快捷键。导出完成后,可在浏览器中打开生成的 .html 文件,全选(Ctrl/Cmd + A)并复制到微信公众号后台或其他富文本编辑器中。
Inline HTML,点击安装并启用。main.js、manifest.json、styles.css 三个文件。.obsidian/plugins/ 下新建文件夹 inline-html,将上述 3 个文件放入其中。# 安装依赖
npm install
# 运行单元测试
npm test
# 开发监听模式
npm run dev
# 类型检查与生产环境打包(生成压缩后的 main.js)
npm run build
Released under the MIT License. Copyright © 2026 qijixiaoshu.