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

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

Open
chrispcampbell opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chrispcampbell
Copy link
Contributor

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
@chrispcampbell chrispcampbell added the bug Something isn't working label May 30, 2023
@chrispcampbell chrispcampbell self-assigned this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant