ColaMD

marswaveaiMIT活跃维护

一款跨 macOS、Windows、Linux 的免费 Markdown 编辑器,设计简洁,编辑内容与磁盘文件实时同步,适合写作和记笔记。

A free, elegant Markdown editor for macOS, Windows and Linux. Simple by design, always in sync with the file on disk.

v2.7.11发布于 2026-11-06 23:54 UTC1,300star94fork同步于 2026-11-10 11:49 UTC

怎么上手

由 README 提炼,执行前请确认
brew install --cask colamd
硬件要求按 README 说明

README 未说明硬件要求;提供 macOS(.dmg,含 Apple silicon 与 Intel 通用包)、Windows(.exe)、Linux(.AppImage / .deb)安装包。

支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

免费优雅的跨平台 Markdown 编辑器,无工具栏干扰,磁盘文件改动实时同步到界面

一款跨 macOS、Windows、Linux 的免费 Markdown 编辑器,设计简洁,编辑内容与磁盘文件实时同步,适合写作和记笔记。

核心能力

  • 文件被 AI 代理或脚本改动后编辑器立即刷新,无需重开
  • 真 WYSIWYG 编辑,边写 Markdown 边看富文本,无分栏预览
  • 内置 12 套明暗主题,每套都是 themes/ 下可改的独立 CSS
  • 支持 Mermaid 图表、KaTeX 公式与 ==高亮== 语法
  • 导出主题化 PDF、自包含 HTML、可编辑 Word 与长图 PNG

容易踩的坑

README 未给出源码构建步骤,需从 Releases 下载对应平台安装包;Mermaid 渲染器仅在文档含图表时加载,离线环境可能无法出图;主题自定义需自行复制 themes/template.css 编写。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.7.11
  1. v2.7.11最新正式版2026-11-06 · 2026-11-06 23:54 UTC

    v2.7.11 · 点哪儿就落在哪儿

    点正文,光标落到下一行。 文档里有两张以上表格时,表格下面那段文字点进去,光标总是往下掉一行;表格越多偏得越多。根因是表格那圈上下 4px 的外边距:块的高度是 CodeMirror 按元素矩形量的,外边距不在矩形里,可浏览器排版时又真占着位置,于是它下面每一行屏幕上都在偏低的位置,点下去自然对不上。现在留白用内边距,屏幕和 CodeMirror 记的位置一致。

    同一类问题还查出两处。HTML 块和块级公式的上下留白也是外边距,一并改掉。图是异步画出来的,占位那一行矮、画完变高,而 CodeMirror 只在内容元素高度变化时才重新量块高,.cm-content 自带 min-height: 100% 永远至少一屏高,于是画完没人重新量,图下面几行的坐标整体偏掉。现在图画完会先把那个下限撤一帧再量,量完放回去。

    顺手加了条断言:每个块级 widget 在屏幕上的位置和高度,必须等于 CodeMirror 记的那一份。这类偏差以前没有任何东西能发现。


    Full Changelog: https://github.com/marswaveai/ColaMD/compare/v2.7.10...v2.7.11

  2. v2.7.102026-11-06 · 2026-11-06 23:40 UTC
    查看更新说明

    v2.7.10 · 打字的手感

    这一版改的都是打字时的那几下:# 什么时候变标题,回车和退格做什么,列表缩进多宽,序号是什么颜色。

    # 打出来还只是 #。 以前敲一个 #,整行立刻变标题,字号跳一下,# 自己还被藏起来,接着打字母又退回段落。CommonMark 把孤立的 # 当成空标题,可人是还没决定要写什么。现在 # 后面跟着空格才算标题。单独一个 > 同理,保持原样不藏。

    链接不再吞掉后半行。 打 https://example.com/a:后面还有字,全角冒号之后的中文被一起算进链接,整段染成链接色,后面的格式也就丢了。链接现在停在第一个中文字符或全角标点之前。

    回车和退格退回 CodeMirror 自己的命令。 上一版这两下是手写的,退出列表、行首退格、标题退回段落各写了一处例外,凡是没想到的动作就丢格式。现在续列表用官方的 insertNewlineContinueMarkupCommand,关掉「空条目上方插空行」,跟 Obsidian 一样直接退出列表;退格用 deleteMarkupBackward。行首退格先拆结构:少一级缩进、拆掉标记、标题变回段落,最后才把两行粘起来。

    列表缩进收窄一半。 以前行首的空格和样式表各给一份缩进,二级多 8px、三级多 16px,有序列表还比无序多 4px。现在行首空格在渲染模式藏起来,缩进只由一处给:圆点落在 24 / 48 / 72px,有序无序对齐。

    序号和列表文字都用正文色。 上一版只改了圆点,序号还是灰的,一级列表里 3 和 9 甚至是黑的。根因是高亮层把序号当成标记字符压灰,那道 span 嵌在序号元素里面,只给外层设色盖不住。

    Word 导出的代码块不再乱码。 字体以前写死成 Menlo,Windows 上没有这个字体,找不到就整段替换成符号。现在按平台选字体,代码逐行输出、行间是真换行,段落左对齐,不再被两端对齐拉成「键在左边、值在右边」。

    另外几处:表格单元格里的行内公式画成公式了,导出的 HTML 也不再把这层编辑器外壳带出去;多位序号缩进成子列表时,光标不再跑回行尾;README 里补上了 Homebrew 的安装方式,社区一直在维护那个 cask。


    Full Changelog: https://github.com/marswaveai/ColaMD/compare/v2.7.9...v2.7.10

  3. v2.7.92026-10-25 · 2026-10-25 05:15 UTC
    查看更新说明

    v2.7.9 · 字色少一点

    这一版只改一件事:正文里的字色。原来引用、列表、加粗各有各的颜色,同一页纸上分出好几等次,看着累。

    列表的文字不再发灰。 列表里的字整段都是浅灰,只有段落是深的,圆点和序号也一样灰。根因在语法高亮那一层:t.list 跟 #、>、- 这些标记字符写在同一条规则里,一起压成了弱化色;而它罩住的是整个列表项的文字,不只是前头那两个字符。现在列表的文字、圆点、序号都用正文色,是列表这件事由缩进自己说清楚。

    引用的文字也不再淡一档。 引用现在只靠左边那条竖线和底色区别于正文。顺带删掉了 nord、gruvbox、dracula、午夜四套主题里写死的引用字色。

    加粗只靠字重,删除线只靠划线。 以前加粗在多数主题里会换成一种强调色,删除线会压灰;现在两样都不换颜色。

    结果是渲染模式下正文里只剩四种字色:正文、链接、行内代码、代码块里的字。行内代码和代码块本来就是文件里的另一类内容,不是正文字,所以各留一笔颜色。

    改了色的地方在每套主题下都量过:引用、列表、加粗、删除线的文字色全部等于正文色。验收脚本也补了断言,其中一条是这一轮踩出来的教训:以前量的是行元素的颜色,而行元素一直报正文色,于是断言全绿、屏幕上还是灰的;现在量的是文字落在的那个元素。


    Full Changelog: https://github.com/marswaveai/ColaMD/compare/v2.7.8...v2.7.9

  4. v2.7.82026-10-25 · 2026-10-25 03:15 UTC
    查看更新说明

    v2.7.8 · 七个看不见的地方

    这一版没有新功能,全是「看得见但说不出哪里不对」的修复,大部分跟颜色和层序有关:文字在某个主题下和背景撞色,选中的范围被底色盖住,导出的文件跟屏幕不是同一套配色。

    代码块里的光标和选中范围现在看得见。 雅致、熊红这两套主题的代码块是深底,光标和拖放时那条落点竖线一直吃正文色,进去就消失了。现在它们跟着代码块自己的文字色走,光标离开代码块就换回来。

    同一类问题还有两处。引用里的代码块被引用的底色盖住,浅色的代码字落在浅色底上几乎看不清;nord、dracula 那几套反过来,代码字被染成了引用的颜色。引用里拖选文字时,选中的范围也被引用底色压在下面。这两处现在按背景、选区、文字的顺序重新叠好了,引用左边那条竖线保留。

    导出的 HTML 跟屏幕是同一套配色。 雅致、熊红导出之后代码块只剩一片深色底,字和背景同色:导出样式给代码块设了背景,却漏了文字色。现在导出用的是主题自己那套代码文字色,和编辑器里量出来的是同一个值。

    导出的 HTML 不再丢图表,也不再拆散列表。 已渲染的图表那一行还带着代码块的标记,导出时被当成普通代码围栏,清理围栏的时候把整行连同图一起删了。列表项里放表格、表格后面再补一段的那种写法也被拆过:表格跑到列表外面,续段变成新的列表项,空行生成空项目。现在列表项的归属从语法树里带到导出层,同一个编号下的说明、表格和补充段落留在同一个 li 里,有序列表的起始编号也保留。

    ⌘/ 现在真的切换源码。 以前在正文里按它,当前行会被包成 <!-- 注释 -->:编辑器自带的按键表把 Mod-/ 绑给了「切换注释」,菜单里的源码切换收不到这一下。现在这一条从编辑器里摘掉了,⌘/(Windows、Linux 上是 Ctrl+/)在正文和源码里都切得动,切完焦点落在编辑区,⌘A 只选中正文。切换还保留文字位置和选区方向,长文档不会把你甩回文首或者文末。

    顺手收掉的几处:

    • 退出源码编辑后图表立刻回来,不用滚动一下重建视口才出现
    • 词中间的 _ 不再被当成斜体:local_upload / external_api 这类名字以前会被染成一半斜体
    • 复选框只在它自己身上响应:点方框附近不会再误触发,光标也不会钻进 - [ ] 的语法里
    • 标题上方的间距补回来了:标题和上一段之间不再贴在一起

    这几条修复来自 @Michael8021 报的 issue 和他配套的 PR,引用里的代码块、列表导出那几处根因都是他自己查出来的。


    Full Changelog: https://github.com/marswaveai/ColaMD/compare/v2.7.7...v2.7.8

  5. v2.7.72026-10-19 · 2026-10-19 07:34 UTC
    查看更新说明

    v2.7.7 · 图表换了引擎,也能放大了

    这一版的主角是图表,另外把上一轮改动带出来的几处毛病收干净了。

    画图的那套引擎换成了 Pele。 以前用 Mermaid,为了画出十几种图,安装包要背上三兆多的脚本,渲染还得塞进一个隐藏的 iframe 里跑,为的是别把打字卡住。Pele 是 Obsidian 团队做的,吃的还是同一份 Mermaid 语法,你文件里写的东西一个字都不用改;整个包六百多 KB,没有运行时依赖,那个 iframe 和配套的超时重置机制一起删掉了。它按图种分开加载:文件里没有图,启动时一分钱不花;有图也只加载用到的那一种。渲染器的体积从 10M 降到 5.4M,一张三百个节点的流程图从占位到画好大约 20 毫秒。图上的颜色现在从当前主题算出来,换主题不用重画,也不再有「按背景明暗挑浅色还是深色」这件事。图的排版会跟以前不一样,节点形状、连线弧度、字号都重新排过,这一点得先说清楚。

    放不下的图现在能放大看。 以前一张横向铺得很开的图,在窄窗口或者开着大纲面板的时候会被压成一条几十像素高的细线,字糊成一团,而它本来只是照容器等比例缩小的。现在这类图角上会出现放大、缩小、还原三个按钮,也可以按住 Ctrl(Windows / Linux)或 Cmd(macOS)滚滚轮;放大之后按住图可以拖动平移,双击在原始大小和放大之间来回。本来就放得下的图不出现按钮,单用滚轮也还是滚文档,不会被图抢走。导出图片和 PDF 用的是完整的图,不会把放大后的那一角、或者那排按钮画上纸。

    表格点哪一格,光标就落在哪一格。 以前点渲染出来的表格,光标落在源码第一行开头,而源码正被渲染结果盖着,看起来就是「打完字表格散架了」,其实第一个字写进了你看不见的地方。现在点某一格,光标进到那一格里去,行首带缩进的表格和没有竖线的表格也认得准,光标离开这块又变回排版。表格、图、HTML 块、块公式都按这个规矩来;图片不算,它源码只有一行,本来就在眼前。

    一行链接不会再让整篇正文空白。 链接里只包一张图([![图](a.png)](https://…))会让渲染层的排序断言失败,于是整个渲染层被丢掉,文件打开就是空白一片。触发条件很窄,但踩上就是大事,现在修掉了,验收里也钉住了这个写法。

    剩下的是小修小补:

    • 公式认得 \[…\] 和 \(…\):ChatGPT 这类模型默认用这两个定界符,以前粘进来是原文;现在能认,但会先看内容像不像公式,\[1\] 这种编号不会被误判
    • 行内 HTML 成对标签只管标签之间的字:<span style="color:red">红</span>绿 以前会把整行都染红
    • 选中文字不再给全文同一处都描上框:每个匹配项都框一遍,看得人眼晕
    • 代码块里选中文字看得见高亮:底色原来压在选区层上面,只剩左右两边各 40px 露出色带
    • 导出的 HTML 里不再漏进围栏符号:代码块结尾那行三个反引号以前会跟着进 <pre><code>
    • 打开文件面板时正文在可见区域里居中,不再被面板挤到左边缘
    • 渲染进程的运行期报错会写进 renderer-errors.log:白屏这种事后查不出原因的问题,至少留下一条线索

    表格格子定位、围栏这两处来自 @wg2038 的贡献,面板那一段接着 @Yesokim 的改动做。


    Full Changelog: https://github.com/marswaveai/ColaMD/compare/v2.7.6...v2.7.7

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    ColaMD

    A free, elegant Markdown editor anyone can pick up. No toolbars, no clutter, and the file on disk is always what you see.

    Language / 语言: English · 中文 · Website

    ColaMD is an open-source, free, elegant Markdown editor for writing, notes, and documentation. It is built for people who just want to write: no toolbars, no status bar, nothing to configure: just your text and a file list, with a tab strip only when you open a second document.

    It offers true WYSIWYG editing, 12 built-in themes, rich-text copy, smart line breaks, search and replace, a document outline, PDF / HTML / Word export, and support for macOS, Windows, and Linux.

    Whatever writes the file (an AI agent such as Claude Code or Codex, a script, or another editor), ColaMD shows the new content right away. No reopening, no manual refresh.

    License: MIT GitHub release

    Download | Features


    Screenshots

    Themes

    Twelve built-in themes, six light, six dark, inspired by Bear, Notion, iA Writer, Kindle, Solarized, Nord, Gruvbox, and Dracula. Every one of them is also a standalone CSS file in themes/, with a guide to writing your own and a commented template to copy.

    Features

    • Always in Sync: Whenever the file changes on disk (an AI agent, a script, another editor), the editor updates immediately. No reopening, no manual refresh.
    • True WYSIWYG Editing: Type Markdown and see rich text directly. No split-pane preview.
    • Files & Outline: Browse Markdown files in the selected folder, or switch to a document outline for focused heading navigation.
    • Source Mode: Switch to the raw Markdown source whenever you need to inspect or edit it directly.
    • Task Lists: Click checkboxes to complete tasks, or use the keyboard shortcut.
    • Highlights & LaTeX: Write ==highlighted text== and render mathematical formulas with KaTeX.
    • Mermaid Diagrams: Mermaid code blocks render as diagrams, and a diagram wider than the reading column can be zoomed (Ctrl/⌘ + scroll wheel, or the buttons in its corner) and dragged to pan. The renderer is loaded only when a document contains one, and clicking a diagram opens its source.
    • Search & Replace: Find anything in the current document with ⌘/Ctrl+F, then replace the current match or all matches.
    • Smart Line Breaks: Single newlines render as line breaks, matching how people and AI tools write Markdown.
    • Rich Text Copy: Copy content with formatting preserved into WeChat, email, and other rich-text editors.
    • Themes: Twelve built-in themes for focused writing in light or dark environments.
    • Recent Files & Session Restore: Jump back to the last 10 documents from the File menu, and reopen where you left off at launch.
    • Editor Font Settings: Pick any installed system font and size for the editor; your choice wins over theme defaults.
    • Multiple Windows: Independent editor windows, each with its own save queue and close protection.
    • Save Status Hint: A quiet titlebar indicator shows unsaved/saved, then fades away.
    • Heading Anchors: Click intra-document anchor links to jump between headings, CJK included.
    • Version Changelog: The first launch after an update opens the built-in changelog once, so you can see what changed without repeated prompts.
    • PDF, HTML & Word Export: Turn your Markdown document into a themed PDF, self-contained HTML, or editable Word document.
    • Image Export: Share Markdown as one continuous PNG at the desktop or mobile reading width; longer documents continue as numbered pages.
    • Portable Image Paths: Local images use safe file:// URLs for display and return to relative paths when saved.
    • Minimal by Design: No toolbar, no permanent sidebar, no distractions.
    • Cross-Platform: Available for macOS, Windows, and Linux.

    Works with your Markdown workflow

    ColaMD does not ask you to change your habits. It works well alongside Obsidian, Typora, VS Code, and other Markdown apps, all sharing the same .md files, with each tool doing what it does best.

    Download

    Check Releases for the latest builds.

    PlatformFormat
    macOS.dmg
    Windows.exe
    Linux.AppImage / .deb

    On macOS the community-maintained Homebrew cask follows each release: brew install --cask colamd.

    Roadmap

    ColaMD will keep growing as a focused, free Markdown editor:

    • v1.1: Live file reload, file associations, drag & drop, themes
    • v1.2: New icon
    • v1.3: Agent activity indicator, Cmd+click links, rich text copy, smart line breaks, PDF export, theme persistence
    • v1.6: Robust live sync: atomic-save (rename) detection, watcher self-recovery, spellcheck off
    • v1.6.1: Editable task lists (click / ⌘+Enter), ==highlight== syntax, Markdown cheatsheet
    • v1.6.2: Temporarily remove HTML export
    • v1.7: Same-directory file list: switch files in place, live updates when agents create/remove files; search (⌘F) + LaTeX (⌘⇧E) from community PR #14
    • v1.7.1: Task checkbox click fix, centered SVG checkmark, titlebar file-panel toggle button
    • v1.7.2: Playable demo page: Help → 新功能演示 (⌘⇧D), a real directory showcasing each release's features
    • v1.7.3: Demo page becomes a cumulative changelog: resources/demo/changelog.md records every release and opens straight into it
    • v1.7.4: Community-feedback release: file panel improvements, source mode, HTML export, Windows image paths, and a VS Code integration MVP
    • v1.8.0: Portable image paths for Markdown and HTML images, plus editing fixes from community feedback
    • v1.8.1: Refined first-launch experience and macOS icon; removed Mermaid rendering so code blocks remain native and editable
    • v1.9.0: Word export, desktop and mobile reading-page image export, a document outline, themed PDF pages, and leaner startup loading
    • v2.0.0: 1000-star release: Mermaid diagrams return with luminance-aware colors, recent files & session restore, editor font settings, heading anchors, multiple windows, and a save status hint
    • v2.0.1: Universal macOS build for Apple silicon and Intel Macs, plus custom-theme restoration, Mermaid render recovery, and Windows updater fixes
    • v2.0.2: Resizable file panel (180–420px, remembered) and an outline progress view that highlights the current heading and flashes the landing point after a jump
    • v2.3.0: Folders expand in place in the file list, one root and downward, so nested documents are one click away. Plus a round of shell tightening: the tab strip starts on the panel's edge line, resizing the panel lights up the divider itself, long names in the list appear as a hover label instead of scrolling past the icon, and the title-bar controls express state through weight instead of boxes
    • v2.7.0: The editor core is rewritten around a single rule: the editor holds the file's bytes, and rendering is a layer drawn on top of them. Characters you never touched can no longer change on save (table delimiter rows and *, $, _ used to come back rewritten), long documents export whole instead of one screenful, and images, links, footnotes, inline HTML, Mermaid diagrams, code highlighting, copy buttons and list continuation are all back on the new core
    • v2.6.0: Mermaid diagrams are drawn into exported Word documents (rendered light, because Word is a white page), the reading column has three widths in View → Text Width (640 / 780 / 1080, honoured by source mode and by the HTML and PDF exports), unsaved work is copied to ~/.colamd/recovered before it is discarded, and the tab close button answers a 24×24 target while staying 16×16 on screen
    • v2.5.0: The document becomes a slideshow (View → Play Slideshow, ⌘⇧P): one --- per page, full screen, starting at your caret, with the theme's typography, tables, formulas and diagrams on every slide. The same deck exports as a 16:9 PDF. Empty lines you type are written as blank lines instead of <br /> tags, and a mixed ---/*** document keeps the rule marker it mostly uses
    • v2.4.4: YAML frontmatter survives a save byte for byte (opening a note and saving it used to rewrite the block into invalid YAML and overwrite the file), CRLF files stay CRLF, wide tables stop losing their last column in PDF exports, the find panel clears the window controls in the top row, a document opened from outside the app lands in the window you are looking at, and the file list can sit on either side from the View menu
    • v2.4.3: The Windows window buttons finally follow the theme. The colour handed to the system was a CSS Color 4 value it cannot parse, so the whole update was rejected and the buttons kept the colours from window creation (a light strip over a black row)
    • v2.4.2: Windows refinements to the one row: the system's window buttons are drawn in the row icons' grey instead of the document's ink, and the menu button moves to the row's left end with even spacing on both sides
    • v2.4.1: Full screen stops reserving room for traffic lights that are not there; Windows gets a shell of one row instead of three stacked bars, with the menu as the row's fourth icon; the shell's focus ring follows the theme instead of the system accent; the Window menu speaks the interface language; and a new tab is ready to type in
    • v2.4.0: The top row rebuilt. The left belongs to the document and the right is one column, with the file panel docked under the three controls that open it. Tabs fill the row as full-height columns and never collapse below twice the row height; every seam in the shell is one opaque hairline; the new-tab button keeps its place when the row fills up; and the panel shortcut is now ⌘\
    • v2.2.0: One top row: the tab strip is always there and a single document is a tab too. Opened files land as tabs instead of new windows, the window remembers its size and zoom, PDF export gets page margins painted with the theme, plus a Format submenu, footnote hover previews, and colours that follow the theme everywhere
    • v2.1.2: A quieter tab strip: the first tab sits flush with the window edge, and the theme colour line on the active tab is gone. The editor is a canvas, the shell stays out of the way
    • v2.1.1: Tabs get their plus back, at the end of the tab strip; a right-click menu on tabs (close, close others, close to the right, copy path, reveal); and a quieter hover hint that waits a second and shows only the shortcut
    • v2.1.0: Tabs: keep several documents open in one window, each with its own content, undo history, unsaved state and scroll position. Open one with ⌘T, from the File menu, or with ⌘-click in the file list; with a single document the tab strip does not appear at all
    • v2.0.7: Per-architecture macOS downloads (216 MB down to about 82 MB), a Windows zip build that runs without installing, a context menu in the file panel, and a document title that stays centred
    • v2.0.6: Titlebar fixes: reveal-in-file-manager works again, tooltips paint above the document instead of showing through, and the top-right controls align with the top edge
    • v2.0.5: The reveal-in-file-manager button is now reachable, hovering the document title brings it out
    • v2.0.4: PDF export no longer captures app overlays, undo can no longer cross documents, rich-text copy no longer adds blank lines in chat apps, source mode no longer overflows with the file panel open, a reveal-in-file-manager action next to the document title, and the heuristic agent activity dot removed
    • v2.0.3: Find & replace, UI language switch, large-document source-mode fallback, update download progress with retry, and differential (blockmap) updates
    • Future: More themes, editor integrations, and smoother Markdown workflows

    License

    MIT, Free forever.


    ColaMD is built by Cola.app and maintained by orange2ai. Issues, ideas and pull requests are welcome.