Releases: posthtml/posthtml-components
Releases · posthtml/posthtml-components
v2.1.0
New features
You may now pass fileExtension
as an Array
and the plugin will look for all matching files with those extensions.
For example:
posthtml([
plugin(
{
fileExtension: ['html', 'md'] // looks for both md-layout.html and md-layout.md
}
)
])
.process('`<x-md-layout>test</x-md-layout>`')
.then(result => result.html)
Note that this is just an example - markdown content isn't parsed, it just reads the file as usual.
This is useful in cases where some components in your project should be sourced directly from files with extensions other than html
(because you can't change them or prefer they'd be left unchanged for further processing).
If both md-layout.html
and md-layout.md
exist in the root
folder, the first fileExtension
match will be used (in this case, md-layout.html
).
v2.1.0-beta.2
v2.1.0-beta.1
- test: update tests 2c69ad8
- feat: support fileExtension as array 5175272
- refactor: use native for loops instead of lodash/each bcd80ef
- build(deps-dev): bump @vitest/coverage-v8 from 2.1.5 to 2.1.6 e07feae
- build(deps-dev): bump @biomejs/biome from 1.9.3 to 1.9.4 6e6323d
- build(deps): bump posthtml-parser from 0.12.0 to 0.12.1 e4f7e73
- build(deps): bump style-to-object from 1.0.7 to 1.0.8 ad81c84
- build(deps-dev): bump markdown-it-anchor from 9.1.0 to 9.2.0 0fbfcfa
v2.0.0
v2.0.0-beta.2
- chore: update package description 9732a70
- refactor: add
files
field in package.json fea2f3c - chore: export types in package.json 2fb61b7
- feat: add types 7feb3af
- chore: update readme.md 336558b
- refactor: rename
blacklistAttributes
toblocklistAttributes
0cd302e - build(deps-dev): update
posthtml-include
to 2.0.1 3d168d4 - feat: require node 18 907de89
v2.0.0-beta.1
v1.1.1
v1.1.0 Stable Release
- Add support for customizing posthtml-parser #31
- Enable by default self-closing tag
First Stable Release
v1.0.0 Prepare for first stable release
Second Release Candidate
- Fix issue with custom valid attributes
- Added test for override options of valid attributes