Closed lukebarton closed 1 year ago
@lukebarton I am not able to reproduce the error that you speak about.
I've just modified the highlight template and added your if-statement and it works as expected.
Can you try with the latest version of the plugin please while you are at it (1.8.0)?
Works in 1.8.0
Describe the bug
If statements in highlights cause an error when syncing highlights.
Method of syncing
To Reproduce
Steps to reproduce the behaviour: Highlight template:
{% if color == "yellow" %}I am yellow{% endif %}
Expected behaviour
Expected if statement to test if color equals "yellow" and output "I am yellow"
Screenshots
Metadata