mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-05 16:42:27 +03:00
* 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]
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
---
|
||||
"@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
|
||||
Reference in New Issue
Block a user