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

Fix tables bug #193

Closed
wants to merge 3 commits into from
Closed

Fix tables bug #193

wants to merge 3 commits into from

Conversation

yaniswang
Copy link

When users want show table markdown code in codeblock, it will show a table, not code.

like this:

| Left-Aligned  | Center Aligned  | Right Aligned |
| :------------ |:---------------:| -----:|
| **col 3 is**      | some wordy text | $1600 |
| ~~col 2 is~~      | centered        |   $12 |
| zebra stripes | are neat        |    $1 |

@yaniswang
Copy link
Author

Extenstion api is not strong enough, can't use subParser,globals.gHtmlBlocks...

@tivie
Copy link
Member

tivie commented Aug 27, 2015

@yaniswang Thanks.

You shouldn't need to call showdown.subParser('hashBlock') since blocks are not really allowed inside tables.

Extenstion api is not strong enough, can't use subParser,globals.gHtmlBlocks...

Also, in extensions, you should not call subParser directly at all since it's not meant for that.

@tivie tivie closed this in 5025623 Aug 27, 2015
@yaniswang
Copy link
Author

I sugges save the table code in hash.

I add a extention latex, match by $xxx$

| Left-Aligned  | Center Aligned  | Right Aligned |
| :------------ |:---------------:| -----:|
| **col 3 is**      | some wordy text | $1600 |
| ~~col 2 is~~      | centered        |   $12 |
| zebra stripes | are neat        |    $1 |

Inline LaTeX: $E=mc^2$

If table not save in hash, it will render badly.

@tivie
Copy link
Member

tivie commented Aug 29, 2015

@yaniswang Sorry, do you mind explaining a bit further the problem you're having?

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 this pull request may close these issues.

None yet

2 participants