posthtml-expressions icon indicating copy to clipboard operation
posthtml-expressions copied to clipboard

Delimiters (Angle Brackets)

Open jescalan opened this issue 9 years ago • 7 comments

They are parsed as html tags

jescalan avatar Jul 12 '16 16:07 jescalan

@jescalan Is there a way to solve this ?

michael-ciniawsky avatar Nov 16 '16 20:11 michael-ciniawsky

Should work fine with ['<', '>'] after #27. But, unfortunately, double angle brackets are not working (they are parsed as html tags: < + < key >>).

Perhaps, in some cases, the parser does not work correctly.

mrmlnc avatar Nov 16 '16 21:11 mrmlnc

The only way to solve it is to charge the parser structure. It works in reshape, but reshape uses a different parser entirely.

jescalan avatar Nov 16 '16 21:11 jescalan

i used [ '[[', ']]' ] but it didn't work. Just write it in config.js. Is there some reason ?

cy-98 avatar Dec 15 '20 09:12 cy-98

i used [ '[[', ']]' ] but it didn't work. Just write it in config.js. Is there some reason ?

Hi, could you please provide an example where reproduced ?

Scrum avatar Dec 16 '20 06:12 Scrum

What is the current status on this issue? I'm trying to use this but it does not work correclty with posthtml-modules. Thanks in advance!

RemyyB avatar Mar 14 '22 17:03 RemyyB

@RemyyB custom delimiters work fine in posthtml-expressions, your issue comes from posthtml-modules which currently doesn't handle expressions properly. There's a PR that'll be merged soon to fix this issue, so watch out for [email protected] 👍

cossssmin avatar Apr 26 '22 11:04 cossssmin