0.0.6 • Published 4 years ago

markdown2json_core v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

输入

const { lexer, parser } = require('../index')

const markdown = `
张/三   :   // 全部
| na:me | value | 
| 张/三 | 3|
| 李四//1 | 4|
| 王五: 1 | 4|

2: // 激活
| name | value |
| 张三 | 3|
| 李四 | 4|
`

输出

[{
    type: 'json',
    node: { key: '张/三   ', 
        comments: ["全部"], 
        table: [
                ['na:me','value'],
                [ '张/三' , '3']
                [ '李四//1' , '4']
                [ '王五: 1' , '4']
            ] 
        }
},{
    // ...
}]

输入

const { lexer, parser } = require('../index')

const markdown = `
| na:me | value | 
| 张/三 | 3|
| 李四//1 | 4|
| 王五: 1 | 4|
`

输出

[
    ['na:me','value'],
    [ '张/三' , '3']
    [ '李四//1' , '4']
    [ '王五: 1' , '4']
] 
0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago