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 in sub headers not rendering #722

Closed
hurshi opened this issue Dec 21, 2018 · 6 comments
Closed

table in sub headers not rendering #722

hurshi opened this issue Dec 21, 2018 · 6 comments

Comments

@hurshi
Copy link

hurshi commented Dec 21, 2018

Hi, thanks for docsify,
I am facing a problem that cannot be solved

Desc

I have a table in sub header, and so I taped some blank space key(a tab),it's ok in typora,but the table is not rendered after I push to docsify.

DEMO

https://hurshi.github.io/#/blog/android/bug_issues/not_support_table_with_tabs

@cheng-kang
Copy link
Contributor

Seems marked and typora have different rules for parsing and rendering.

Solution is to add two new lines before the table:

* This is a TEST


  | test1 | test2 |
  | ----- | ----- |
  | t1    | T2    |

@hurshi
Copy link
Author

hurshi commented Dec 24, 2018

thanks for your reply.

  • It worked, the table was rendered

but it's not perfect for me

@cheng-kang
Copy link
Contributor

@hurshi looks like this is a known issue of marked: markedjs/marked#1246, will follow any update.

A temp workaround until this issue is resolved:


* This is what i want

<div style="margin-left: 1.5rem;">

  | test1 | test2 |
  | ----- | ----- |
  | t1    | T2    |

</div>

@cheng-kang cheng-kang reopened this Dec 24, 2018
@hurshi
Copy link
Author

hurshi commented Dec 24, 2018

OK, Thanks a lot 🙏

@timaschew
Copy link
Member

Closing because this is a bug in markedjs/marked#1246

@541xxx 541xxx mentioned this issue Jun 6, 2019
10 tasks
@mlms13
Copy link

mlms13 commented Jul 11, 2019

The bug in marked has been fixed, but docsify is still depending on an outdated version. Merging #862 would be much appreciated, thanks!

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

Successfully merging a pull request may close this issue.

4 participants