How to escape double brackets in Hyde markdown syntax

105 views Asked by At

When using the Hyde static webpage generator I have Python code with double brackets

{% syntax %}
var[["some-string"]] = foo
{% endsyntax %}

This renders oddly because [["foo"]] is special Hyde markdown.

Normal escaping (e.g. through the use of HTML escape characters) fails because we're inside of a syntax block.

How does one escape characters within a Hyde syntax block?

0

There are 0 answers