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 support? #104

Closed
WillemMali opened this issue Oct 31, 2017 · 2 comments
Closed

Table support? #104

WillemMali opened this issue Oct 31, 2017 · 2 comments

Comments

@WillemMali
Copy link

I tried using this table:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

But it doesn't render as a table, just as text. I haven't found a way to get tables to work yet. The project I'm using pulldown-cmark in is here.

@raphlinus
Copy link
Collaborator

raphlinus commented Oct 31, 2017

You need to call Parser::new_ext instead of Parser::new and set OPTION_ENABLE_TABLES. The documentation could be better here.

@marcusklaas
Copy link
Collaborator

There's now an example that shows how to enable extensions in the example directory.

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

3 participants