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

A minor bug: if you use <ul> or <ol> tags instead of using Markdown notation for creating lists, links don't work. For example, the input

<ul>
<li> [google](http://google.com) </li>
</ul>

- [google](http://google.com)

<ol>
<li> [google](http://google.com) </li>
</ol>

1. [google](http://google.com)

produces

  • [google](http://google.com)
  1. [google](http://google.com)
  1. google
share|improve this question
3  
One thing: you're not actually closing your <li> elements. –  cletus Nov 29 '09 at 23:23
    
@cletus: fixed. Thanks. –  Anton Geraschenko Nov 29 '09 at 23:25
1  
Minor nitpick: Closing <li> tags is actually optional in HTML: w3.org/TR/html4/struct/lists.html#h-10.2 –  Greg Hewgill Nov 29 '09 at 23:44

3 Answers 3

up vote 5 down vote accepted

From the Markdown syntax page:

Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style emphasis inside an HTML block.

<ul> is a block level HTML tag, so according to the spec it your example behaves correctly.

However, there appears to be an exception to this in SO markdown to handle simple formatting such as italics and bold within HTML:

  • markdown-bold in a markdown bullet

  • markdown-bold in HTML bullet
  • share|improve this answer

    That's how markdown works. If you start talking HTML, it figures that it can't possibly know enough about what you're doing to try and make guesses at what your meaning is, so it just dumps everything through literally.

    share|improve this answer

    You'll have to do this:

    <ul>
    <li> <a href="http://google.com">google</a> </li>
    </ul>
    
    - [google](http://google.com)
    
    <ol>
    <li> <a href="http://google.com">google</a> </li>
    </ol>
    
    1. [google](http://google.com)
    

    Getting this

    1. google
    1. google

    Just don't mix both styles.

    share|improve this answer

    You must log in to answer this question.

    Not the answer you're looking for? Browse other questions tagged .