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:
committed by
GitHub
parent
a82af8003c
commit
5e4aec422d
@@ -1,15 +1,20 @@
|
|||||||
# @bbob/parser
|
# @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!"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user