Fenced code blocks don't work with ~~~…~~~


(John Muhl) #1

Both triple ` and ~ should be supported as the start and end of fenced code blocks but only backticks seem to work here.

This is a fenced code block
This is a fenced code block

(Mittineague) #2

I’m only familiar with US keyboards, they have both backtick and tilde keys.

But I understand some keyboards (European) don’t have bactick keys.

Would those keyboards have tilde keys?


(Jeff Atwood) #3

That is not part of Markdown or CommonMark as far as I know.


(John Muhl) #4

CommonMark Spec. PHP Markdown Extra, kramdown and GitHub markdown support it.


(Mittineague) #5

Maybe unique to SourceForge flavor Markdown?

http://sourceforge.net/p/tilde/wiki/markdown_syntax/

If you want some text to show up exactly as you write it, without Markdown doing anything to it, just indent every line by at least 4 spaces (or 1 tab). As an alternative to indenting, you can use 4 or more tildes before and after the text.

You can also designate a code block by surrounding it with lines of tildes. The type of code highlighting to apply will be inferred based on the code within, or you can specify like above.


(Jeff Atwood) #6

Oh my bad, if it is in the CommonMark spec we will support it for the official release of the CommonMark spec, once we have time to integrate. There is no official final release yet. Probably will take at least 8 months for all of that to happen, if not more.


(Jeff Atwood) #7

Ok, this is now working with commonmark enabled here.


(Jeff Atwood) #8