I'm trying to write a block of code containing part of a Makefile script in a Markdown document.
If I write
<pre><code>FOO = $(BAR)
</code></pre>
then in multiple different Markdown previewers I'll see
FOO = $(BAR)
but when converted to HTML with various tools and opened in a browser, I see
FOO =
How can I write this such that it renders correctly in both a Markdown preview and in HTML?
Is it at all possible to use the 3-backtick (```) notation for code blocks in a way that works with HTML? I've found that it just literally prints the backticks when converted to HTML.
Dollar sign can be printed using $\$$ This will be converted into a single '$' sign
Consider using $
for $ when you use it within HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With