2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-17 19:21:20 +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 # @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 Parses BBCode and returns AST Tree looks like
`[url=]hello world![/url]`
to
```json ```json
[ [
{ {
tag: 'url', "tag": "url",
attrs: { "attrs": {
url: 'https://github.com/JiLiZART/bbob/tree/master/packages/bbob-parser' "url": "https://github.com/JiLiZART/bbob/tree/master/packages/bbob-parser"
}, },
content: ['hello', ' ', 'world!'] content: ["hello", " ", "world!"]
} }
] ]
``` ```