Skip to content

Rethink “non-indenting spaces” #8

@flying-sheep

Description

@flying-sheep

In #3 I shortened the number of “nonindenting spaces” that can appear at the start of a line to 2.

Then I reread some of the rST spec and found out that this is also valid rST:

- list item

  another paragraph in item 1

- another item

  - one level down!

which should render to

<ul>
<li><p>list item</p>
<p>another paragraph in item 1</p>
</li>
<li><p>another item</p>
<ul class="simple">
<li><p>one level down!</p></li>
</ul>

but

-   deeply indented

    - one level down!

should also render to <ul><li>…<ul><li>…</li></ul></li></ul>, not <ul><li>…<code>…</code></li></ul>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions