gitbook-plugin-image-captions
gitbook-plugin-image-captions copied to clipboard
Image captions are not applied to images within {% if %} statements
Using the current gitbook and gitbook-plugin-image-captions images within version {% if %} seem to be ignored. I didn't try other Templating features, but I gues they won't work either. If needed I can supply a demo gitbook, but it make take some time to prepare ;)
I've found a workaround: Instead of writing
{% if book.projectName == "One" %}

{% elif book.projectName == "Two" %}

{% endif %}
This one works:
{% if book.projectName == "One" %}

{% elif book.projectName == "Two" %}

{% endif %}
I can't judge of this is intended or not, but for me the first example should work too.