I am trying to add code syntax content to my blog posts using markup. See example below. I have had to replace ``` with ''' to make it viewable.
'''php <?php echo 'hello world'; ?> '''
This works fine until I go back to edit the content and it replaces it with.
<pre><code class="language-php"><?php
echo 'hello world';
?></code></pre>
Therefore it stops working.
It seems the column 'content_markdown' gets translated to pure html somehow before it gets to the rich text editor.
Last updated