I modified one line to get my ``` code ``` markdown sections to work `text = protect(text):gsub("```(.-)```","<pre>%1</pre>") `