hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.46k stars 4.85k forks source link

Yaml parser chokes on GFM tables #352

Closed mvhenten closed 10 years ago

mvhenten commented 11 years ago

Hi,

The Yaml parser does a:

/home/matthijs/Development/whatser/wiki/node_modules/hexo/node_modules/yamljs/bin/yaml.js:1219
                throw new YamlParseException('Unable to parse.', this.getRealCurrentLineNb

When encountering something like:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

I don't require hexo to understand GFM tables, but is there any way to cheat the yaml parser not to attempt parsing this?

https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#wiki-tables

tommy351 commented 10 years ago

YAML front-matter module is rewritten. This bug should be fixed.