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

Wrong output from renderDjot with some lists #103

Open
ranfdev opened this issue Dec 9, 2024 · 0 comments
Open

Wrong output from renderDjot with some lists #103

ranfdev opened this issue Dec 9, 2024 · 0 comments

Comments

@ranfdev
Copy link

ranfdev commented Dec 9, 2024

Case 1

let input = `- 1
  
  - |fruit|price|
  - 3`;
let output = djot.renderDjot(djot.parse(input));

where output becomes

- 1

  - |fruit|price|
    - 3

Notice how the 3 got indented again. In that example, making the list loose fixes the problem.

Case 2
input:

- simple text

  - simple text

    - |1|2|

  - |fruit|price|
    |---|--:|
    |apple|4|
    |banana|10|

when parsed and transformed (djot.renderDjot(djot.parse(input)))

becomes

- simple text

  - simple text

    - |1|2|
      - |fruit|price|
    |---|--:|
    |apple|4|
    |banana|10|
@ranfdev ranfdev changed the title Wrong rendering of some tight lists Wrong output from renderDjot with some lists Dec 9, 2024
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

1 participant