You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has mostly worked but I've run into an issue when I have a custom element tag with 4 parts, eg: <some-long-custom-element>.
Adding a djlint:off comment also doesn't stop the formatter.
I've tried having a look at where it's going wrong but I'm struggling to figure it out.
It looks like custom_html regex is used in a few places and this regex just breaks things.
Is there a better way to support arbitrary custom HTML elements?
The text was updated successfully, but these errors were encountered:
## [1.0.1](v1.0.0...v1.0.1) (2022-05-02)
### Bug Fixes
* **custom attributes:** custom attributes separated by hyphen were split up during format ([1ce378c](1ce378c)), closes [#236](#236)
System Info
Issue
We use custom HTML elements so have added a
custom_html
regex to handle them:This has mostly worked but I've run into an issue when I have a custom element tag with 4 parts, eg:
<some-long-custom-element>
.Adding a
djlint:off
comment also doesn't stop the formatter.BEFORE
AFTER
I've thrown up an example in this repository:
https://github.com/danstewart/djlint-issue
I've tried having a look at where it's going wrong but I'm struggling to figure it out.
It looks like
custom_html
regex is used in a few places and this regex just breaks things.Is there a better way to support arbitrary custom HTML elements?
The text was updated successfully, but these errors were encountered: