Skip to content

Quarto Adapter 0.2.0

Choose a tag to compare

@Vara326 Vara326 released this 01 Dec 16:01
· 7 commits to main since this release

发布说明

Format .qmd notes offline in Obsidian with the bundled Panache formatter. Code blocks, including R and Python, keep their exact text, cell options, and blank lines.

  • Run Format current Quarto note from the command palette to format the whole note. One undo restores the original text.
  • Format on save also applies to autosave. The plugin writes your edits to disk first. When background formatting finishes, it saves the formatted note if the text is still the same version.
  • Format while typing tidies a heading with attributes or a fenced block opener when you complete } or press Enter at the end of the line. Press Enter after the closing ::: to format the block you just finished.

Both automatic formatting options are off by default. You can enable either in the plugin settings. Requires Obsidian 1.15.1 or later. For manual installation or updates, download quarto-adapter.zip.

发布说明

Quarto Adapter 现已支持在 Obsidian 中使用随插件提供的 Panache 离线整理 .qmd 笔记。R、Python 等代码块保留原文,包括单元选项和空行。

  • 在命令面板运行「格式化当前 Quarto 笔记」即可整理整篇笔记。一次撤销就能恢复原文。
  • 「保存时格式化」也适用于自动保存。插件先写入当前原稿,后台格式化完成时,如果内容仍是同一版本,再写入整理后的笔记。
  • 「输入时格式化」在补完 } 或按行尾回车时整理带属性的标题和围栏开头。在结尾的 ::: 后按回车,可以整理刚写完的块。

两个自动格式化选项默认都关闭,可在插件设置中分别启用。需要 Obsidian 1.15.1 或更高版本。手动安装或更新请下载 quarto-adapter.zip。