1

This is the text of the message:

This X is an [example link](http://example.com/)

<ul>
<li>
This Y is an [example link](http://example.com/)
</li>
</ul>

And this is how it looks:

This X is an example link

  • This Y is an [example link](http://example.com/)

Update (this way it seems to work)

- This X is an [example link](http://example.com/)

But why not in unnumbered list?

0

2 Answers 2

6

From the editor help section on raw HTML (emphasis mine):

post editor html help

Block-level HTML elements have a few restrictions:

  1. They must be separated from surrounding text by blank lines.
  2. The begin and end tags of the outermost block element must not be indented.
  3. Markdown can't be used within HTML blocks.

So, you either need to construct the <a> HTML yourself, or, more simply, use the Markdown syntax for unordered lists:

This X is an [example link](http://example.com/)

  - This Y is an [example link](http://example.com/)

...produces...

This X is an example link

2
  • Markdown: Basics: daringfireball.net/projects/markdown/basics. I thought that links are also part of markdown
    – user140009
    Nov 18, 2012 at 15:31
  • 1
    They are, but you tried to combine raw block-level HTML with Markdown, which you can't do.
    – Tim Stone
    Nov 18, 2012 at 15:32
2

Markdown can't be used within HTML blocks. Simply use Markdown to do the job.

This X is an example link

That is:

This X is an [example link](http://example.com/)

- This Y is an [example link](http://example.com/)

You must log in to answer this question.