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

Table inside of list is rendered incorrectly #325

Closed
astoilkov opened this issue Jan 17, 2017 · 4 comments
Closed

Table inside of list is rendered incorrectly #325

astoilkov opened this issue Jan 17, 2017 · 4 comments
Labels

Comments

@astoilkov
Copy link

Example from markdown-it page

- list item
    
    | Col1  | Col2 |
    | ----- | ---- |
    | Col1  | Col2 |

image

@puzrin puzrin added the bug label Jan 17, 2017
@puzrin
Copy link
Member

puzrin commented Jan 17, 2017

Good catch. Probably a bug.

Works with 2-space indent, but doesn't work with 3 & 4.

@rlidwka what do you think?

@puzrin
Copy link
Member

puzrin commented Jan 17, 2017

Also table overrides indented code block by unknown reasons

@puzrin
Copy link
Member

puzrin commented Jan 17, 2017

Ah, that's a result of attempt to support "unbordered" tables:

Col1  | Col2 
----- | ---- 
Col1  | Col2

I think:

  1. Broken indented code blocks should be fixed
  2. Starting table cell without | pipe should not be empty (seems gihtub behave the same way).

@rlidwka
Copy link
Member

rlidwka commented Jan 17, 2017

Fixed, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants