Skip to content

3.11.16 - Preview platform follows the note's platform property

Choose a tag to compare

@github-actions github-actions released this 24 Sep 10:35
· 9 commits to main since this release
  • Switching notes now switches the preview platform automatically: the panel reads the note's frontmatter platform (wechat / rednote / x, also the toolbar labels 公众号 / 小红书 / X and common aliases such as xiaohongshu / twitter) and selects the matching mode. Notes without the property, or with an unrecognised value, keep the current mode, and the toolbar dropdown still works as before. Editing the property while the note is open applies immediately.
  • New toggle in 样式设置 → 公众号排版 → 预览模式: "按文档属性自动切换预览平台" (on by default). Its description documents the convention so other users can adopt it in their own notes.
  • Tests: tests/platform_property.test.js, tests/preview_mode_auto_switch.test.js.