Open kylekatarnls opened 4 years ago
This is intended behaviour for buffered comments. Use //-
for an un-buffered comment (https://pugjs.org/language/comments.html)
This link is the one I came from and mentionned in my original post. I think you don't get my point. The question is: why the interpolation is compiled but not p
?
Ah, that's a fair point. I guess this is a little bit inconsistent.
I guess it's not expected to be compiled because it's only in multiline comments:
- foo = 9
// Foo #{foo}
// Foo #[a(href='') page]
//
p.
go to #[a(href='') page]
Only the last comment produces <a href="">
Pug Version: pugjs.org
Input Pug
Expected HTML
According to https://pugjs.org/language/comments.html
I would expect:
Actual HTML
p is not compiled, while interpolation is:
I would appreciate some kind of explanation if this is the expected behavior.
Thanks,
Relates to https://github.com/phug-php/phug/issues/69