mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-11 18:02:26 +03:00
0566241e23
* fix: test for buggy behavior * feat: implement whitespaceInTags mode * feat: move all char arrays to Map * feat: revert Map for char arrays
30 lines
695 B
Markdown
30 lines
695 B
Markdown
---
|
|
"@bbob/parser": minor
|
|
"@bbob/types": minor
|
|
"@bbob/cli": minor
|
|
"@bbob/core": minor
|
|
"@bbob/html": minor
|
|
"@bbob/plugin-helper": minor
|
|
"@bbob/preset": minor
|
|
"@bbob/preset-html5": minor
|
|
"@bbob/preset-react": minor
|
|
"@bbob/preset-vue": minor
|
|
"@bbob/react": minor
|
|
"@bbob/vue2": minor
|
|
"@bbob/vue3": minor
|
|
---
|
|
|
|
Added `whitespaceInTags` parsing option (true by default) with this option you can disable parsing `[tags with spaces]` it will be considered as text
|
|
|
|
```js
|
|
import html5 from '@bbob/preset-html5'
|
|
import parse from '@bbob/html'
|
|
|
|
const html = parse('[b]lorem[/b] [foo bar] [i]ipsum[/i]', html5(), {
|
|
whitespaceInTags: false
|
|
})
|
|
|
|
console.log(html) // <b>lorem </b> [foo bar] <i>ipsum</i>
|
|
```
|
|
|