Re: Links in Code Blocks
On 26-Mar-14 12:41, Jak Wings wrote: you'd better use raw HTML code instead of mixing them up. This code block contains an embedded http://en.wikipedia.org/wiki/Hyperlink";>hyperlink. On 26-Mar-14 13:22, Alan Hogan wrote: 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 On 26-Mar-14 16:57, Waylan Limberg wrote: one of those things that you would need to do with raw HTML Jak, Alan, /and/ Waylan: Thanks for the replies. It doesn't disappoint me, I knew before I asked that I wanted something that didn't make sense even to me ... but "ya never know," right? In fact, I hadn't even thought of simply dropping back to POH (Plain Old HTML), so I am glad that (A) I did actually ask, and (B) you all came back with the same solution. Sometimes the tip of your nose is the hardest thing to see of all. Thanks again. ___ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss
Re: Links in Code Blocks
Considering that one of the features of Code Blocks is that they can be used to display markdown syntax in its original source, the answer would be no. There is no way to have markdown syntax interpreted inside a code block. This would be one of those things that you would need to do with raw HTML as others have already demonstrated. Waylan On Wednesday, March 26, 2014, Tom Maynard wrote: > 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@six.pairlist.net > http://six.pairlist.net/mailman/listinfo/markdown-discuss > -- Waylan Limberg ___ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss
Re: Links in Code Blocks
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 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@six.pairlist.net > http://six.pairlist.net/mailman/listinfo/markdown-discuss ___ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss
Re: Links in Code Blocks
Fenced code block is not in vanilla Markdown. "kramdown" can let you write this way: This code block contains an embedded [hyperlink](http://en.wikipedia.org/wiki/Hyperlink). It is really unusual to have links inside code block (which should be kept as is). So you'd better use raw HTML code instead of mixing them up. This code block contains an embedded http://en.wikipedia.org/wiki/Hyperlink";>hyperlink. On 2014-03-27, at 01:25+08:00, Tom Maynard wrote: > 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@six.pairlist.net > http://six.pairlist.net/mailman/listinfo/markdown-discuss ___ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss
Links in Code Blocks
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@six.pairlist.net http://six.pairlist.net/mailman/listinfo/markdown-discuss