Skip to content

Mapdown 1.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Nov 13:44

Branch colors can now show on the nodes themselves, maps export to SVG and PDF, and you choose where each export is saved.

Branch color styles

  • A new setting, Branch color style, decides where branch colors show besides the edges:
    • Edges only: the default, same as before.
    • Borders: nodes get a border in their branch color.
    • Tinted: nodes also get a light fill in their branch color that fades toward the outer levels.
  • With borders or tints, edges are a little thicker so the branches read clearly. Node sizes and positions do not change.
  • The style applies to maps, embedded maps and exports alike.

SVG and PDF export

  • SVG: a vector file that stays sharp at any size. Text stays text, so you can select and search it.
  • PDF: one page sized to the map, holding a high-resolution image of it.
  • Both are in the export menu next to PNG, JPEG, HTML and XMind, and in the command palette as Export to SVG and Export to PDF.

Choose where exports go

  • On desktop, Mapdown now asks where to save each export. Cancel and nothing is written.
  • Prefer the old way? Set Export location to Save next to the note. Phones and tablets always save next to the note.
  • Slow exports show "Exporting…", and a single notice says when the file is ready. Click it to open the file when it is in your vault.

Formulas

  • Block formulas written over several lines ($$ on its own line, the formula, then $$) now display correctly in nodes and stay on several lines when saved.
  • In exported images, formulas show as their source text. The export notice tells you how many.

Better XMind export

  • Tasks become XMind task markers, done or not done.
  • Inline code loses its backticks, and $$…$$ formulas are written in the form XMind understands.
  • Importing those files back gives you [ ] and [x] tasks again.

Fixes

  • In exported images, long text no longer spills out of its node.

Install

  • BRAT: add leftlive/mapdown.
  • Manual: download manifest.json, main.js and styles.css below into .obsidian/plugins/mapdown, then reload Obsidian.

Requires Obsidian 1.5.7 or later.


中文说明

分支颜色现在可以画在节点上,导图能导出成 SVG 和 PDF,导出的文件存在哪里由你来选。

分支配色样式

  • 新设置“分支配色样式”决定分支颜色除了连线还画在哪里:
    • “只有连线”:默认,和以前一样。
    • “边框”:节点边框用分支的颜色。
    • “淡底色”:节点再铺一层分支色的淡底,越往外越淡。
  • 选边框或淡底色时,连线会稍粗一点,分支看得更清楚。节点的大小和位置不变。
  • 导图、嵌入的导图和导出的文件都按这个样式画。

SVG 和 PDF 导出

  • SVG:矢量文件,放多大都清楚。文字还是文字,可以选中和搜索。
  • PDF:一页,页面大小跟着导图,里面是一张高清图片。
  • 导出菜单里和 PNG、JPEG、HTML、XMind 放在一起,命令面板里是“导出为 SVG”和“导出为 PDF”。

导出位置由你选

  • 电脑上导出时会弹出保存框,问你存在哪里;取消就什么都不写。
  • 想和以前一样?把“导出位置”设成“存到笔记旁边”。手机和平板上总是存到笔记旁边。
  • 导出较慢时会显示“正在导出…”,完成后只弹一条提示。文件在库里时,点提示就能打开。

公式

  • 写成多行的块级公式($$ 单独一行、公式、再一行 $$)现在能在节点里正确显示,保存后仍是多行。
  • 导出的图片里公式显示为源码,导出提示会告诉你有几个。

XMind 导出更完整

  • 任务变成 XMind 的任务标记,分已完成和未完成。
  • 行内代码去掉反引号,$$…$$ 公式改写成 XMind 认得的写法。
  • 把这样的文件导入回来,任务还是 [ ] 和 [x]。

修复

  • 导出的图片里,长文字不再超出节点框。

需要 Obsidian 1.5.7 及以上。