posthtml options for singleTags doesn't appear to be working #766
Replies: 3 comments 1 reply
-
Dug into this a bit and figured out adding posthtml: {
options: {
singleTags: ['custom'],
closingSingleTag: 'slash'
}
} |
Beta Was this translation helpful? Give feedback.
-
Sorry this took me a while to get to, I'll look into it but I do think that's how PostHTML works (requiring |
Beta Was this translation helpful? Give feedback.
-
Looked into this a bit more and indeed, setting Is the |
Beta Was this translation helpful? Give feedback.
-
I'm following the documentation for setting up
singleTags
for a<custom>
element – I think exactly the same use case as in the docs. I feel like I must be doing something silly wrong, but maybe it's a bug?In config.js, I've have:
In
src/layouts/main.html
, my expection is it would take this and render it as-is, with tags closed:However, the result I have is:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions