What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

When using markdown you can enter a space at the beginning to get a nice block around your text. The following without a space would present a link:

some link

but the same syntax with a space in front removed the link and presents it as text instead.

[some link](http://www.someurl.com)

Is there a way to have a clickable link added inside the block instead of it showing the link as text? I'd like that 2nd example to be in the box, but presented like the first example where you see the link.

share|improve this question

migrated from stackoverflow.com Nov 29 '11 at 21:28

This question came from our site for professional and enthusiast programmers.

    
Thanks for letting me know. –  Green Nov 29 '11 at 17:54

2 Answers 2

up vote 1 down vote accepted

Prefixing a line by four spaces (8 in a list) causes the text to not be formatted in markdown. Additionally, the text is shown in a monospace font, and its syntax is highlighted.

If you want to use markdown inside a block of code, use <code></code>, as shown below. Some HTML tags (such as <br /> are supported. If you don't want to parse HTML, surround the code by a backtick character (```).

[SO](http://s.tk/) - Prefixed by four spaces
Monospace
111111111

SO - <code></code> Abi
Monospace
111111111

SO - Default environment.
Monospace
111111111 (not a monospace font)

share|improve this answer
Markdown and HTML are turned off in code blocks:
<i>This is not italic</i>, and [this is not a link](http://example.com)

It's in the tooltip when you click on the "Code" button above the text field.

share|improve this answer

You must log in to answer this question.