0%

Hexo 使用问题 bug 记录

如果 markdown 文件中有这种类型额代码:

1
`{#id .class1 .class2}`

就会报错:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
C:\Special\Test\HexoTest\blog>hexo g
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
Error: expected end of comment, got end of file
at Object._prettifyError (C:\Special\Test\HexoTest\blog\node_modules\nunjucks\src\lib.js:36:11)
at Template.render (C:\Special\Test\HexoTest\blog\node_modules\nunjucks\src\environment.js:536:21)
at Environment.renderString (C:\Special\Test\HexoTest\blog\node_modules\nunjucks\src\environment.js:378:17)
at C:\Special\Test\HexoTest\blog\node_modules\hexo\lib\extend\tag.js:120:48
at tryCatcher (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\util.js:16:23)
at Function.Promise.fromNode.Promise.fromCallback (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\promise.js:209:30)
at Tag.render (C:\Special\Test\HexoTest\blog\node_modules\hexo\lib\extend\tag.js:120:18)
at Object.onRenderEnd (C:\Special\Test\HexoTest\blog\node_modules\hexo\lib\hexo\post.js:291:22)
at C:\Special\Test\HexoTest\blog\node_modules\hexo\lib\hexo\render.js:79:21
at tryCatcher (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues (C:\Special\Test\HexoTest\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
您的支持是我最大的动力!