Parsing multiple references
Closed this issue · 2 comments
Doxter apparently has trouble parsing two back-to-back reference tags.
[entry 1]({entry:1:url}) and entry 2
outputs
<a href="link">entry 1</a> and entry 2
All good so far. However,
[entry 1]({entry:1:url}) and [entry 2]({entry:2:url})
outputs
<a href="entry:1:url">entry 1</a> and <a href="entry:2:url">entry 2</a>
No parsing taking place. I solved the issue by turning off Doxter parsing and using the parseRefs Twig filter that's built into Craft, but it would be nice to leave everything in the hands of Doxter.
Thanks for the heads up!
Somehow I never came across this issues but most likely I never used back to back references. Based on your report, I believe this is a bug caused by a restrictive regular expression.
I'll try to work on this within the next couple of days.
Hey @jdsdev this should have gotten merged a while back and I never updated you on it, sorry about that.
The latest version should support multiple reference tags.