Releases: davidodenwald/prettier-plugin-jinja-template
Releases · davidodenwald/prettier-plugin-jinja-template
v1.4.0
v1.3.3
fix infinite loop on empty expression
v1.3.2
set correct content for blocks after parser rewrite
v1.3.1
add tests and build to npm prepublish
v1.3.0
Recognize end statements that start with "end_".
v1.2.0
Remove hard coded list of non closing statements
The new logic assumes that all statements that start with "end" are closing statements and then searches for the closest statement that has the same name without the "end" and uses it as the start for a block.
All other statements are handled as non closing statements.
v1.1.0
v1.0.0
update plugin to support prettier v3
Starting with Prettier 3 auto-discovery of plugins has been removed.
To enable this plugin you ether have to add it to your prettier config:
{
"plugins": ["prettier-plugin-jinja-template"]
}
or add it to the prettier command:
npx prettier --write **/*.html --plugin=prettier-plugin-jinja-template
v0.5.0
v0.4.0
preserve empty lines between jinja elements
cleanup statements if they only contain whitespace