Links in Code Blocks

Alan Hogan contact at alanhogan.com
Wed Mar 26 14:22:15 EDT 2014


This will never be a feature, as half the point of a code block, in Markdown, is to opt out of Markdown syntax recognition.

I would agree, this is a job for HTML (or, perhaps, a post-Markdown linkifying script, depending on your use case).

Alan


> Le Mar 26, 2014 à 10:25 AM, Tom Maynard <tom at maynard.com> a écrit :

>

> Is it possible to have a live hyperlink *inside* a \`\`\`Code Block\`\`\`? Something like:

> ```markdown

> This code block contains an embedded [hyperlink](http://en.wikipedia.org/wiki/Hyperlink). Is it possible to render it as an active link instead of source?

> ```

> I realize that Markdown support already exists, but it doesn't work. And, I also realize that what I'm asking for is diametrically opposed to what a Code Block is meant to be (even one with syntax highlighting. It's a "WYSIWYG" functionality, and I'm trying to circumvent it (at least partially).

>

> Is there a way?

>

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss



More information about the Markdown-Discuss mailing list