对Hexo的一些功能进行简单的测试。

文章内功能测试

  • 代码高亮

    (稍微改了一下原主题css仿vscode)

    1
    2
    3
    4
    5
    6
    7
    8
    9
    #注释
    test = "test■"
    def getmidstring(htmla, start_str, end):
    start = htmla.find(start_str)
    if start >= 0:
    start += len(start_str)
    end = htmla.find(end, start)
    if end >= 0:
    return htmla[start:end].strip()
  • 数学公式

    (我 爱 高 数,我爱 L a T e X)

    行内插入:$\LaTeX$

    行间插入:

  • 插入图片

其他测试

  • 自制插件:哔哩卡片

  • 自制插件:hexo-markmap

    {"t":"root","d":0,"v":"","c":[{"t":"heading","d":1,"p":{"lines":[0,1]},"v":"Testa","c":[{"t":"heading","d":2,"p":{"lines":[1,2]},"v":"test1"},{"t":"heading","d":2,"p":{"lines":[2,3]},"v":"test2"}]},{"t":"heading","d":1,"p":{"lines":[3,4]},"v":"Testb","c":[{"t":"heading","d":2,"p":{"lines":[4,5]},"v":"test11"},{"t":"heading","d":2,"p":{"lines":[5,6]},"v":"test2333he","c":[{"t":"heading","d":3,"p":{"lines":[6,7]},"v":"1111s1"}]}]}],"p":{}}
{"t":"root","d":0,"v":"","c":[{"t":"heading","d":1,"p":{"lines":[0,1]},"v":"Testa","c":[{"t":"heading","d":2,"p":{"lines":[1,2]},"v":"test1"},{"t":"heading","d":2,"p":{"lines":[2,3]},"v":"test2"}]},{"t":"heading","d":1,"p":{"lines":[3,4]},"v":"Testb","c":[{"t":"heading","d":2,"p":{"lines":[4,5]},"v":"test1"},{"t":"heading","d":2,"p":{"lines":[5,6]},"v":"test2"}]}],"p":{}}