2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-18 12:39:39 +03:00

chore(@bbob/parser): update readme

This commit is contained in:
Nikolay Kostyurin
2018-07-11 16:58:26 +02:00
committed by GitHub
parent a82af8003c
commit 5e4aec422d
+9 -4
View File
@@ -1,15 +1,20 @@
# @bbob/parser
[![install size](https://packagephobia.now.sh/badge?p=@bbob/parser)](https://packagephobia.now.sh/result?p=@bbob/parser)
Parses BBCode and returns AST Tree looks like
`[url=]hello world![/url]`
to
```json
[
{
tag: 'url',
attrs: {
url: 'https://github.com/JiLiZART/bbob/tree/master/packages/bbob-parser'
"tag": "url",
"attrs": {
"url": "https://github.com/JiLiZART/bbob/tree/master/packages/bbob-parser"
},
content: ['hello', ' ', 'world!']
content: ["hello", " ", "world!"]
}
]
```