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]
965 B
965 B
@bbob/parser, @bbob/types, @bbob/cli, @bbob/core, @bbob/html, @bbob/plugin-helper, @bbob/preset, @bbob/preset-html5, @bbob/preset-react, @bbob/preset-vue, @bbob/react, @bbob/vue2, @bbob/vue3
| @bbob/parser | @bbob/types | @bbob/cli | @bbob/core | @bbob/html | @bbob/plugin-helper | @bbob/preset | @bbob/preset-html5 | @bbob/preset-react | @bbob/preset-vue | @bbob/react | @bbob/vue2 | @bbob/vue3 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| minor | minor | minor | minor | minor | minor | minor | minor | minor | minor | minor | minor | minor |
New option flag caseFreeTags has been added
This flag allows to parse case insensitive tags like [h1]some[/H1] -> <h1>some</h1>
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
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