Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested <ol>: all kinds of broken #597

Closed
kevinSuttle opened this issue Feb 4, 2016 · 1 comment
Closed

Nested <ol>: all kinds of broken #597

kevinSuttle opened this issue Feb 4, 2016 · 1 comment

Comments

@kevinSuttle
Copy link

<ol>
    <li>Top level `li`
        <ol type="a"> 
            <li>Wabbit season</li>
            <li>Duck season</li>
            <li>Wascally Wabbit season</li>
        </ol>
    </li>
</ol>

Rendered

  1. Top level `li`
    1. Wabbit season
    2. Duck season
    3. Wascally Wabbit season

Issues:

  1. Probably by MarkDown's design, the backticks aren't encoded
  2. The type="a" is rendered as lowercase roman numerals instead of lowercase alphabet letters. This doens't happen when the <ol> is not nested.
<ol type="a"> 
  <li>Wabbit season</li>
  <li>Duck season</li>
  <li>Wascally Wabbit season</li>
</ol>
  1. Wabbit season
  2. Duck season
  3. Wascally Wabbit season
@shawnajean
Copy link
Member

Hey there!

For 1 - yes, especially now that we're using CommonMark (spec). Opening an HTML tag prevents markdown from rendering until there's a new line. So you could get this working with some new lines, but once you do that you have to mess with your indentation because 4 spaces creates a code block. Alternatively, you can use <code> tags instead.

<ol>
  <li>

  Top level `li`
  <ol type="a"> 
    <li>Wabbit season</li>
  </ol>
  </li>
</ol>
  1. Top level li

    1. Wabbit season

For 2 - This isn't directly related to markup and needs to be passed along to a different team. Can you reach out to our support team so they can triage it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants