Open Dee-McG opened 1 year ago
This will be fixed with the new editor I hope, it's a long time coming 🙈
@Dee-McG Sorry for late response but you can wrap your code block with a markdoc-example block to render it without breaking. Here is a small example
{% markdoc-example %}
<YOUR CODE BLOCK>
{% /markdoc-example %}
Let me know if this works for your usecase we'll try to address this issue soon as Niall mentioned.
Context
When trying to use a code block containing django templating syntax, publishing the article throws an error.
Expected Behavior
Articles can be published with django templating code blocks
Current Behavior
When submitting, error messages are shown and the article does not publish.
Screenshots
Steps to reproduce
Please provide detailed steps for reproducing the issue
Additional info
You can escape this in the UI with {% markdoc-example %} {% /markdoc-example %} but it still won't publish.