Fix for lyx bug where <#1> tags look like jinja comments. Closes #45