Open dale-wahl opened 1 year ago
Apparently it isn't the removal of |markdown|safe
, but instead it is a possibly random error. Reloading the page can cause the issue to go away (or occur).
{% if option_settings is mapping %}
{{ option_settings.help|markdown|safe }}
{% endif %}
Don't know why it's happening, but this will stop it from happening...
Immediately before option_settings.help
is called, option_settings.type
is successful so I'm not convinced option_settings
is in fact a tuple until markdown does something to it.
Describe the bug I have seen this before but cannot recall how it was "fixed". I may have something to do with markdown versions. I see that we have both
markdown
andmarkdown2
libraries and swear I removed one (but that could have been in a branch possibly where I was seeing this).This line seems to be the culprit (or possibly a weird datasource option) Changing it from
{{ option_settings.help|markdown|safe }}
to{{ option_settings.help }}
causes the problem to go away, but I'm not sure what is happening.