今天呢, 被 Epix 吐槽了为什么博客的代码这么诡异, 实验一会之后发现一个有趣的事实.

Hexo 的 marked 渲染会将直接 Tab 缩进的代码框丢成 <pre><code> 状态.

eg:

a = dns.resolver.query('oao.moe', 'A')

但是使用三个 “`” 缩进的就是另外一种.

eg:

def isqrt(x):
return pow(10, math.log10(x)/2)

这两个是不同的(倒

PS: 怎么上面的代码被认成 Ruby.


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.