mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-15 11:59:37 +03:00
ccab54a454
* chore: initial tests * feat: parser test * feat: add case free tags support * fix: coverage upload * fix: --disable=gcov * fix: npm publish sha commit * fix: change codecov to coveralls * fix: change workflow pr build and publish * chore: change coverage badge [skip ci]
43 lines
965 B
Markdown
43 lines
965 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
|
|
---
|
|
|
|
New option flag `caseFreeTags` has been added
|
|
|
|
This flag allows to parse case insensitive tags like `[h1]some[/H1]` -> `<h1>some</h1>`
|
|
|
|
```js
|
|
import html from '@bbob/html'
|
|
import presetHTML5 from '@bbob/preset-html5'
|
|
|
|
const processed = html(`[h1]some[/H1]`, presetHTML5(), { caseFreeTags: true })
|
|
|
|
console.log(processed); // <h1>some</h1>
|
|
```
|
|
|
|
Also now you can pass `caseFreeTags` to `parse` function
|
|
|
|
```js
|
|
import { parse } from '@bbob/parser'
|
|
|
|
const ast = parse('[h1]some[/H1]', {
|
|
caseFreeTags: true
|
|
});
|
|
```
|
|
|
|
BREAKING CHANGE: `isTokenNested` function now accepts string `tokenValue` instead of `token`
|
|
|
|
Changed codecov.io to coveralls.io for test coverage
|