Skip to content

Secondary paragraph not handled correctly in bulleted/numbered list #32

Description

@chrispcampbell

We had a case where we wanted to use a secondary paragraph in a numbered list, like this:

1. One

2. Two

   Second paragraph

This is normally rendered like this:

  1. One

  2. Two

    Second paragraph

But docs-builder doesn't produce the expected result:

image

You can see in the marked.js lexer output that the leading whitespace before the "Second paragraph" is not preserved in the token, which confuses our parsing code.

To fix this, I think we'd need to have some extra whitespace accompany the space token or something so that the indent is preserved for the text token that follows it.

As a workaround, we can use:

1. One

2. Two<br/><br/>Second paragraph

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions