@bytechain.cn/colamd 2.7.12 → 2.7.13-fix1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/README_CN.md +4 -1
- package/dist/lib/colamd-renderer.js +19260 -18376
- package/dist/lib/colamd.css +1 -1
- package/dist/main/chunks/docx-export.js +5 -2
- package/dist/renderer/assets/{2DXBBFLN-BJduq_n1.js → 2DXBBFLN-BoTXjdt7.js} +4 -4
- package/dist/renderer/assets/{46IJ22JX-Dl5oABYC.js → 46IJ22JX-ANzbyjth.js} +5 -5
- package/dist/renderer/assets/{4TTDE5I4-D0OZH30N.js → 4TTDE5I4-CrV5ki0X.js} +3 -3
- package/dist/renderer/assets/{4UF3HTLV-B9lH7CBB.js → 4UF3HTLV-DzF5uxRx.js} +4 -4
- package/dist/renderer/assets/{AAXQQPKT-eq8R1-i0.js → AAXQQPKT-CEjPpy2O.js} +8 -8
- package/dist/renderer/assets/{AKE5O7KZ-BPFFZy5e.js → AKE5O7KZ-WgVkdxyE.js} +5 -5
- package/dist/renderer/assets/{BNMLP6AG-DvupnLHN.js → BNMLP6AG-Bf0UfIIR.js} +7 -7
- package/dist/renderer/assets/{DR6PKOQU-DXqY3tAL.js → DR6PKOQU-D7_MHsQ1.js} +3 -3
- package/dist/renderer/assets/{E4RJ7UJB-B3-v1GGn.js → E4RJ7UJB-B5v-NZcH.js} +6 -6
- package/dist/renderer/assets/{ELSXBIJH-W0-fIyGs.js → ELSXBIJH-BbBtcw94.js} +1 -1
- package/dist/renderer/assets/{ERTIBQVS-Cjo8zCEV.js → ERTIBQVS-BKqDuXdj.js} +4 -4
- package/dist/renderer/assets/{F653G4FO-t4kGthl5.js → F653G4FO-CY00L-eT.js} +8 -8
- package/dist/renderer/assets/{FKCDD66M-CqwX5T9T.js → FKCDD66M-BboqFz1q.js} +1 -1
- package/dist/renderer/assets/{FP7KDXVC-SqJKRKSf.js → FP7KDXVC-CV8HkI-r.js} +6 -6
- package/dist/renderer/assets/{FT5I3RHX-B1_XlJMF.js → FT5I3RHX-B4w5Kbul.js} +7 -7
- package/dist/renderer/assets/{GY35JXOZ-D_hAOI09.js → GY35JXOZ-CcCgpgcc.js} +4 -4
- package/dist/renderer/assets/{H5EEJPP2-Dh0ee_t_.js → H5EEJPP2-VR0x4Y0K.js} +9 -9
- package/dist/renderer/assets/{HWDLEDTA-BfmnLbys.js → HWDLEDTA-CtmxxgGh.js} +1 -1
- package/dist/renderer/assets/{JZWSX6AR-DibCj0_r.js → JZWSX6AR-BAnlmGA0.js} +2 -2
- package/dist/renderer/assets/{KQOEJWJY-CYbDpxpS.js → KQOEJWJY-nhMmvCFd.js} +1 -1
- package/dist/renderer/assets/{KS3BB3KE-BKXN5GEp.js → KS3BB3KE-B9JcmElc.js} +5 -5
- package/dist/renderer/assets/{KXJRRZHI-Dd9nToeE.js → KXJRRZHI-CAJWJk2z.js} +3 -3
- package/dist/renderer/assets/{MFVI5XKI-yEhNzg_a.js → MFVI5XKI-8Qcrq6dm.js} +1 -1
- package/dist/renderer/assets/{MWY2J62P-PD0ivp8r.js → MWY2J62P-BIcfy48e.js} +5 -5
- package/dist/renderer/assets/{MXGNCBL2-CrYuCAhj.js → MXGNCBL2-BONsAR9Z.js} +5 -5
- package/dist/renderer/assets/{N6DAJLIZ-CsI-0Pob.js → N6DAJLIZ-Duqadfqd.js} +2 -2
- package/dist/renderer/assets/{NU5M23IW-BRouDTU6.js → NU5M23IW-B1phybNV.js} +5 -5
- package/dist/renderer/assets/{NV4XNBIS-BDKWqPgJ.js → NV4XNBIS-CA-ltA5a.js} +7 -7
- package/dist/renderer/assets/{OGLU4SIR-e03S5CRP.js → OGLU4SIR-f_ylzNw0.js} +5 -5
- package/dist/renderer/assets/{OUNS5N76-DXs9fuRM.js → OUNS5N76-BNl8xlJD.js} +6 -6
- package/dist/renderer/assets/{PU4ISKXV-DHAw3ojo.js → PU4ISKXV-b6VR2dva.js} +5 -5
- package/dist/renderer/assets/{PUZGS23X-BJvqqbjA.js → PUZGS23X-C-eVi8Wl.js} +1 -1
- package/dist/renderer/assets/{Q3IYVLG5-BBP8APVJ.js → Q3IYVLG5-bt4pI3uc.js} +5 -5
- package/dist/renderer/assets/{QYHQDLKZ-Dk9FA6iI.js → QYHQDLKZ-CL8Pe5g9.js} +9 -9
- package/dist/renderer/assets/{RZSVICHU-DQMvf7FW.js → RZSVICHU-77dvTCjl.js} +1 -1
- package/dist/renderer/assets/{UEXXS2NB-pjQFygyK.js → UEXXS2NB-DCiiibSo.js} +1 -1
- package/dist/renderer/assets/{UHTQJXKL-BCjkwDC-.js → UHTQJXKL-CZpwlx2I.js} +5 -5
- package/dist/renderer/assets/{URA2L2QI-DOqGA-7p.js → URA2L2QI-UymOavTP.js} +1 -1
- package/dist/renderer/assets/{UXCHDUKG-P-ssqnp6.js → UXCHDUKG-C4gxpRT0.js} +5 -5
- package/dist/renderer/assets/{VKNV3BUX-S-I5Vkej.js → VKNV3BUX-BXRfO0jw.js} +6 -6
- package/dist/renderer/assets/{VMV7XPHP-CBEFwbRj.js → VMV7XPHP-_NR6yLkn.js} +1 -1
- package/dist/renderer/assets/{WEVWDWVA-NETs7zG0.js → WEVWDWVA-CJ47jRHz.js} +1 -1
- package/dist/renderer/assets/{XRRJ35LF-ChlUj7II.js → XRRJ35LF-R1twzK7P.js} +4 -4
- package/dist/renderer/assets/{YFKBLVVN-a23ZlMUZ.js → YFKBLVVN-EkQ8bqtf.js} +4 -4
- package/dist/renderer/assets/{YHRE5QGZ-B4WFiwFa.js → YHRE5QGZ-DtQLruKb.js} +7 -7
- package/dist/renderer/assets/{ZF3OVT4B-D99LRppp.js → ZF3OVT4B-DiZeh4hb.js} +3 -3
- package/dist/renderer/assets/{index-BQRkI4XZ.js → index-7m0QO8WB.js} +3 -3
- package/dist/renderer/assets/{index-j9IOhwim.js → index-9Sj5sXC4.js} +1 -1
- package/dist/renderer/assets/{index-DShnMzLx.js → index-B70ntIx8.js} +1882 -1122
- package/dist/renderer/assets/{index-BXMm6of_.js → index-BNZFiD0p.js} +1 -1
- package/dist/renderer/assets/{index-B-sTajw0.js → index-BOLvaugm.js} +1 -1
- package/dist/renderer/assets/{index-WU2bjQIt.js → index-BPv5w254.js} +1 -1
- package/dist/renderer/assets/{index-Xe00ZDVa.css → index-Bv0wRFiJ.css} +1248 -32
- package/dist/renderer/assets/{index-Cr5af8vL.js → index-C8B4oiwa.js} +1 -1
- package/dist/renderer/assets/{index-CX3eLmnK.js → index-CA8HMsPR.js} +1 -1
- package/dist/renderer/assets/{index-C5S7E_iS.js → index-CK1GO_fM.js} +3 -3
- package/dist/renderer/assets/{index-CFd49PzX.js → index-CUQ2TUiO.js} +1 -1
- package/dist/renderer/assets/{index-CizbQ4B2.js → index-C_fwNWA1.js} +1 -1
- package/dist/renderer/assets/{index-B7a6ecSB.js → index-DE65Mwj9.js} +1 -1
- package/dist/renderer/assets/{index-9wJDFDHb.js → index-DIJAvJ59.js} +1 -1
- package/dist/renderer/assets/{index-CmCG8RWM.js → index-D_LjRUuM.js} +1 -1
- package/dist/renderer/assets/{index-BUMCX36l.js → index-DbZRCxtl.js} +1 -1
- package/dist/renderer/assets/{index-DNKeYHeb.js → index-DdTUrkbW.js} +1 -1
- package/dist/renderer/assets/{index-BgaTyTt4.js → index-Dx15wPgB.js} +1 -1
- package/dist/renderer/assets/{index-Cl38Mcu3.js → index-Z4DFsvaa.js} +1 -1
- package/dist/renderer/assets/{index-CBsqa7KF.js → index-_dHEdJlO.js} +1 -1
- package/dist/renderer/assets/{index-DurJ4oOc.js → index-a23Siyoo.js} +3 -3
- package/dist/renderer/assets/{index-B3xEpmeL.js → index-fLc_Rsku.js} +1 -1
- package/dist/renderer/assets/{lazy-C5_LqPMG.js → lazy-HOKUQgxi.js} +3 -3
- package/dist/renderer/assets/{web-ClAYTlQS.js → web-B7GcIITZ.js} +1 -1
- package/dist/renderer/assets/{web-DJNzGtPV.js → web-BpiHqBoF.js} +1 -1
- package/dist/renderer/assets/{web-C4L7HQnE.js → web-rrPTCefH.js} +2 -2
- package/dist/renderer/index.html +3 -3
- package/package.json +19 -4
- package/themes/contract.json +1 -1
package/README.md
CHANGED
|
@@ -131,7 +131,10 @@ ColaMD will keep growing as a focused, free Markdown editor:
|
|
|
131
131
|
- v2.0.1: Universal macOS build for Apple silicon and Intel Macs, plus custom-theme restoration, Mermaid render recovery, and Windows updater fixes
|
|
132
132
|
- 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
|
|
133
133
|
- 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
|
|
134
|
-
- v2.7.
|
|
134
|
+
- v2.7.13-fix1: Slide export now matches the projector. PDF sheets are 1920×1080 instead of 1280×720, so type sizes and margins scale with the same design space the slideshow uses (body 25.92px, side margins 115.2px, 1.5× overall); export no longer centres every page vertically — only cover, section and closing keep the projector's full-page centring, while other pages start from the top safe area; images and Mermaid diagrams use the same height budget as the slideshow (72vh, or 66vh on figure pages), figure pages regain their 70% image width, and content lines run the full text column instead of being squeezed by the lead/default-page percentages; export now waits for diagrams to finish drawing rather than printing the "Rendering diagram…" placeholder; and the pink-script-dark template theme drops its 1280×720 export calibration
|
|
135
|
+
- v2.7.13: Slide layouts. Each page declares its layout and page copy with one header block after `---` (`<!-- slide: cover` on the first line, then `kicker / label / chapter`); eleven layouts ship built in (cover, section, agenda, KPI cards, timeline, steps, card matrix, two-column, figure, quote, closing, after dsh-ppt's role taxonomy), and pages without a layout fall back to a denser article style. See [docs/slides.md](docs/slides.md) for the full configuration guide. The first heading is the page title, the first paragraph after it becomes the lead, and a paragraph just before it is the kicker fallback; covers use an h1 title plus an h2 subtitle. A page can fine-tune with `<!-- slide-css -->` or attach a `<!-- slide-js -->` presentation script (it runs in a sandboxed iframe that cannot touch the editor; PDF export never executes it). The deck is redrawn in a magazine style: full-bleed 16:9 pages, a PPT-sized heading scale, serif headings with monospace chrome, and hairlines instead of color blocks. One `<!-- deck … -->` block at the top configures logo, brand, title and date; chrome stays on covers and section pages and fades only on the closing page, and the logo accepts paths relative to the document. Layout colors read theme variables only, so switching themes reskins every layout; `.cm-md-slide-*`, `.cm-md-page-title` and `.cm-md-page-lead` are a public contract, and the `--slide-*` design tokens let an imported theme CSS define slide titles, sizes and chrome character directly; `resources/templates/slides.md` is the standard template and `resources/demo/slides-demo.md` shows one page per layout
|
|
136
|
+
- v2.7.13-rc.1: Maintenance release: export fixes, verification scripts on Windows, and dependency upkeep. The verification scripts now run on Windows (`verify:links` no longer needs a writable system TEMP, `verify:docx` no longer shells out to `npx` or `unzip` — esbuild goes through its JS API, PowerShell Expand-Archive covers docx unpacking, and work dirs live under `node_modules/.cache`); the Word export regains the `noProof` flag lost in the theme-aware rewrite, so code blocks and inline code no longer show spell-check squiggles (#202 regression); and dependency security is cleared: `npm audit` goes from 17 vulnerabilities to 0 — electron 44.11.3 (4 highs), katex 0.19.1 (prototype pollution, formula rendering verified unchanged), @capacitor/cli 8.6.2 (the critical tar chain, Android runtime stays on 6.x), and electron-builder's minimatch chain aligned via overrides. Export fixes ride along: Android PDF export waits for the native print job to finish (explicit A4 attributes, a full-document layout pass, and no diagram zoom controls), so a long document comes out as several pages instead of one; block formulas, tables and diagrams are no longer exported as raw Markdown (the clean-export snapshot ignores the caret, and mobile PDF turns that state on); exported HTML keeps each theme's own colors because strong, inline code, table headers, rules and line height now read per-theme export variables consumed by document.css; Mermaid colors in exported HTML and Word are derived from the page surface rather than the code block, which fixes elegant and bear painting light lines on light paper; and printed or captured output no longer carries the diagram zoom buttons
|
|
137
|
+
- v2.7.12: List edge cases from upstream v2.7.12 (typing after leaving a list stays flush left instead of continuing it, `1.` without a trailing space no longer indents early, Backspace before a list item's first character removes the marker cleanly — a task item unwraps its box, an indented item moves up a level — quote-embedded lists support Tab indent, backspace and checkbox clicks), plus the large-document copy fix: drag-selecting in a long document no longer recomputes decorations every frame and copying viewport content completes synchronously (#201). The extend fork also lands its Android fixes: the menu's Open now uses the system file picker on the same native read path as opening a file from the file manager, so a Markdown file actually reaches the editor; and the phone build is single-document — no tab strip — because a phone reads one note at a time
|
|
135
138
|
- v2.7.11: Typing feel and coordinate alignment from upstream v2.7.10 / v2.7.11 (`#` becomes a heading only after a space, Enter and Backspace hand off to CodeMirror's commands, list indents halved, clicking below a table no longer lands one row off, diagrams re-measure after they finish drawing), plus four export fixes from the extend fork: inline formulas no longer wrap in exported Word, Mermaid colors in the Word and HTML exports follow the theme, and PDF exports no longer carry the diagram zoom buttons
|
|
136
139
|
- 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
|
|
137
140
|
- v2.6.0: Mermaid diagrams are drawn into exported Word documents (light themes follow the theme's own colors; dark themes render 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
|
package/README_CN.md
CHANGED
|
@@ -172,7 +172,10 @@ ColaMD 会继续把「免费、优雅、专注」这件事做好:
|
|
|
172
172
|
* v2.0.2: 文件面板可调宽(180–420px,记住选择),大纲新增阅读进度高亮与跳转落点闪烁反馈
|
|
173
173
|
|
|
174
174
|
* v2.3.0:文件面板里的文件夹可以就地展开,一个树根向下看,嵌套的文档只差一次点击;同时把外壳收紧一圈,标签从面板的边界线开始,拖拽调宽亮起的是分割线本身,长文件名改由浮层说全名,标题栏按钮用深浅表达状态
|
|
175
|
-
* v2.7.
|
|
175
|
+
* v2.7.13-fix1:幻灯片导出与放映对齐。PDF 纸面从 1280×720 提到 1920×1080,和放映用同一套设计空间(正文 25.92px、左右边距 115.2px,整体 1.5 倍),换行位置与放映一致;导出不再给每一页都撑上下居中的空白,只有封面、章节、收束保留放映的整页居中,其余页从页顶安全区开始;图片与 Mermaid 图按放映的身高预算落纸(72vh,figure 页 66vh),figure 页恢复 70% 图宽,正文行铺满版心、不再被导语与默认页的百分比行宽二次压缩;导出会等所有 Mermaid 画完再打印,纸上不再是「图表渲染中…」的占位;pink-script-dark 模板主题撤掉为 1280×720 手调的 ×2/3 导出校准
|
|
176
|
+
* v2.7.13:幻灯片版式系统:放映的每一页在 `---` 后用一个页头块声明版式与页级文案(`<!-- slide: cover` 起头,块内写 `kicker / label / chapter`),内置十一种(封面、章节、议程、关键数字、时间轴、步骤、卡片矩阵、双栏、图表、引言、收束,角色分类参考 dsh-ppt),不写版式的页自动走更紧凑的文章版式。完整配置见 [docs/slides.md](docs/slides.md)。一页第一个标题就是页标题,标题后第一段自动成为导语,标题前紧邻段落兜底当 kicker;封面用 h1 主标题 + h2 副标题。页内可用 `<!-- slide-css -->` 微调、`<!-- slide-js -->` 挂放映脚本(跑在沙箱 iframe 里,碰不到编辑器;导出 PDF 不执行)。整套版式参考杂志风重画:全出血 16:9 排版、衬线标题配等宽 chrome、细线代替色块、标题阶梯放大到 PPT 比例;文档顶部写一个 `<!-- deck … -->` 块配置 logo、品牌名、报告名与日期,封面和章节页保留 chrome,只有收束页淡出;logo 支持相对文档目录的路径。版式色全部走主题变量,换主题即换整套版式的皮;`.cm-md-slide-*`、`.cm-md-page-title`、`.cm-md-page-lead` 是公开契约,并提供了 `--slide-*` 版式令牌,导入主题 CSS 可直接定义 PPT 的标题、字号与 chrome 气质;`resources/templates/slides.md` 是标准模板,`resources/demo/slides-demo.md` 有每种版式的示例
|
|
177
|
+
* v2.7.13-rc.1:维护版,没有新功能,重心是导出修复、验收脚本与依赖维护。验收脚本在 Windows 上修到能跑(`verify:links` 不再依赖系统 TEMP 可写、`verify:docx` 不再用 `spawn npx` 和 unzip,工作目录统一进 `node_modules/.cache`);Word 导出补回主题化重写时丢失的 `noProof`,代码块与行内代码不再出现拼写检查红波浪线(#202 回归修复);依赖安全清零,`npm audit` 从 17 个漏洞清到 0——electron 44.11.3(4 个 high)、katex 0.19.1(原型污染,公式渲染验证不变)、@capacitor/cli 8.6.2(tar critical 链,android 运行时保持 6.x),electron-builder 的 minimatch 链用 overrides 对齐。同一版还收掉一批导出问题:Android 导出 PDF 改成等原生打印任务真正结束(显式 A4、打印前摊平整篇文档、去掉图上的缩放控件),长文档不再只出一页;块公式、表格、图表不再以 Markdown 原文进入导出文件(导出快照忽略光标位置,移动端 PDF 也开启该状态);导出的 HTML 保留主题配色,加粗、行内代码、表头、分隔线与行高改由主题导出差量变量决定,由 document.css 消费;导出 HTML/Word 的图表配色改从页面底色推导,修好雅致与熊红浅色线条落在浅色纸上的问题;打印与图片导出不再带上图表的缩放按钮
|
|
178
|
+
* v2.7.12:上游 v2.7.12 的列表边界修复(退出列表后接着打字保持顶格、`1.` 未跟空格不提前缩进、列表正文首字前退格干净拆掉标记——待办项拆方框保留列表、缩进项退回上一级——引用内列表支持 Tab 缩进、退格与点击勾选待办框),加上大文档复制修复:长文档拖选不再每帧重算全文装饰,复制视口内内容同步完成不再卡顿(#201);扩展版另外修好了 Android:菜单「打开文件」改走系统文件选择器,与文件管理器点开共用同一条原生读取链路,Markdown 文件能可靠载入编辑器;手机端采用单文档形态,不显示标签栏——在手机上一次只读一篇
|
|
176
179
|
* v2.7.11:上游 v2.7.10 / v2.7.11 的打字手感与坐标对齐(`#` 后跟空格才算标题、回车和退格交给 CodeMirror 官方命令、列表缩进收窄一半、表格下方点选不再偏一行、图异步画完重新量高度),加上 Extend 的四处导出修复:Word 行内公式不再折行、导出 Word/HTML 的图表配色跟随主题、PDF 不再带上图表的缩放按钮
|
|
177
180
|
* v2.7.0:编辑器内核重写,只认一条规则:编辑器里存的是文件的字节,渲染只是叠在字节上面的一层。你没碰过的字符保存后不会再变(表格分隔行和 `*`、`$`、`_` 以前会被改写),长文档导出整篇而不是一屏,图片、链接、脚注、行内 HTML、Mermaid 图表、代码高亮与复制按钮、列表续行也都在新内核上补齐
|
|
178
181
|
* v2.6.0:导出的 Word 里带上 Mermaid 图(浅色主题跟随主题配色,深色主题按浅色画,因为 Word 是白纸),正文宽度多了三档(视图 → 正文宽度:640 / 780 / 1080,源码模式和 HTML、PDF 导出都跟着走),丢弃未保存内容之前先往 `~/.colamd/recovered` 留一份副本,标签关闭按钮可点的范围扩到 24×24(可见的还是 16×16)
|