marked icon indicating copy to clipboard operation
marked copied to clipboard

Render bullet-pointed incorrectly

Open hzoou opened this issue 2 years ago • 8 comments

Marked version: v5.0.4

Describe the bug https://github.com/markedjs/marked/issues/2819#issuecomment-1576785026

If the tab size is 2, it will be solved, but if it is 4, it will be reproduced equally ... 😂 Please check. 🙏🏻

hzoou avatar Jun 05 '23 13:06 hzoou

I can confirm, a third nested list item will fail according to the spec, however this appears to be the same behavior as Commonmark.

- title
  - desc
    - 

gives

  • title
    • desc

Marked.js demo

commonmark demo

calculuschild avatar Jun 05 '23 13:06 calculuschild

@calculuschild I think it was misrepresented..! It is reproduced in the following case. (4 space in 1 depth)

- title
    - desc
    - 
- title
    - 

marked demo

hzoou avatar Jun 05 '23 14:06 hzoou

Please someone correct this issue .. 😂

hzoou avatar Jun 21 '23 06:06 hzoou

@hzoou We are always accepting PRs if you would like to contribute a fix!

calculuschild avatar Jun 21 '23 13:06 calculuschild

Could I be assigned to this? I'd like to work on it

dvptl68 avatar Aug 29 '23 16:08 dvptl68

@dvptl68 are you still working on this?

UziTech avatar Sep 09 '23 23:09 UziTech

Hello, can I have a look at this?

AnuMessi10 avatar Oct 01 '23 08:10 AnuMessi10

@AnuMessi10 sure go ahead

UziTech avatar Oct 01 '23 14:10 UziTech