{"action":"closed","issue":{"url":"https://api.github.com/repos/hexojs/hexo/issues/1660","labels_url":"https://api.github.com/repos/hexojs/hexo/issues/1660/labels{/name}","comments_url":"https://api.github.com/repos/hexojs/hexo/issues/1660/comments","events_url":"https://api.github.com/repos/hexojs/hexo/issues/1660/events","html_url":"https://github.com/hexojs/hexo/issues/1660","id":122630508,"number":1660,"title":"Rendering an invisible character cause errors","user":{"login":"sjbsjb","id":11750373,"avatar_url":"https://avatars.githubusercontent.com/u/11750373?v=3","gravatar_id":"","url":"https://api.github.com/users/sjbsjb","html_url":"https://github.com/sjbsjb","followers_url":"https://api.github.com/users/sjbsjb/followers","following_url":"https://api.github.com/users/sjbsjb/following{/other_user}","gists_url":"https://api.github.com/users/sjbsjb/gists{/gist_id}","starred_url":"https://api.github.com/users/sjbsjb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjbsjb/subscriptions","organizations_url":"https://api.github.com/users/sjbsjb/orgs","repos_url":"https://api.github.com/users/sjbsjb/repos","events_url":"https://api.github.com/users/sjbsjb/events{/privacy}","received_events_url":"https://api.github.com/users/sjbsjb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hexojs/hexo/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-16T23:51:01Z","updated_at":"2016-01-21T08:05:43Z","closed_at":"2016-01-21T08:05:43Z","body":"Today I copied an article from Pages.app and pasted it in a file to make Hexo to render it. But unfortunately, it seemed that I had triggered a wierd bug...\r\n\r\nHere is a sample of article:\r\n\r\n[test.md](https://github.com/hexojs/hexo/files/64656/test.txt) \r\n\r\nAnd the errors:\r\n```\r\n➜  Blog  hexo server\r\nFATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html\r\nSyntaxError: Unexpected token ILLEGAL\r\n    at Function (native)\r\n    at Obj.extend._compile (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/environment.js:450:24)\r\n    at Obj.extend.compile (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/environment.js:433:18)\r\n    at null.<anonymous> (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/environment.js:378:22)\r\n    at Object.exports.withPrettyErrors (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/lib.js:24:16)\r\n    at Obj.extend.render (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/environment.js:374:20)\r\n    at Obj.extend.renderString (/Users/sjb233/Blog/node_modules/hexo/node_modules/nunjucks/src/environment.js:261:21)\r\n    at /Users/sjb233/Blog/node_modules/hexo/lib/extend/tag.js:56:9\r\n    at tryCatcher (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)\r\n    at Promise._resolveFromResolver (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:480:31)\r\n    at new Promise (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:70:37)\r\n    at Tag.render (/Users/sjb233/Blog/node_modules/hexo/lib/extend/tag.js:55:10)\r\n    at Object.tagFilter [as onRenderEnd] (/Users/sjb233/Blog/node_modules/hexo/lib/hexo/post.js:253:16)\r\n    at /Users/sjb233/Blog/node_modules/hexo/lib/hexo/render.js:55:19\r\n    at tryCatcher (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)\r\n    at Promise._settlePromiseFromHandler (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)\r\n    at Promise._settlePromiseAt (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)\r\n    at Promise._settlePromises (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:697:14)\r\n    at Async._drainQueue (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/async.js:123:16)\r\n    at Async._drainQueues (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)\r\n    at Immediate.Async.drainQueues [as _onImmediate] (/Users/sjb233/Blog/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)\r\n    at processImmediate [as _immediateCallback] (timers.js:374:17)\r\n```\r\n\r\nIt seemed that an invisible character (before \"不过\", maybe generated by Pages.app? ) somehow effects the node modules (version:3.1.1)...\r\n\r\nPS: hope Hexo could refactor marked.js and support [MultiMarkdown](http://fletcherpenney.net/multimarkdown/features/), especially footnotes and math support. \r\n\r\nAbout the math formulas support, although simply modifying the HTML templates may work, rendering  formulas with some subscript variables ( `_`s without space, rendered as emphasize token) or tabulars (`\\\\`, `\\[`, ... , rendered as escape characters) won't work appropriately. [Here](http://sjbsjb.github.io/blog/2015/05/sleep/#数学公式显示异常) are some examples. Using tag plugins seems not convenient...\r\n\r\nPPS: how to use Hexo to generate another site in the same machine, for example, a simple wiki? And maybe a wiki template (for example, Hexo Docs)? [Mkdocs](http://www.mkdocs.org) shows us the potentiality to build a wiki site using markdown. Hope Hexo could make it, too."}}