stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

parse tbody and thead to markdown #35

Closed yilliot closed 10 years ago

yilliot commented 10 years ago

I found a bug which don't parse my table back with this sample of markdown.

| Year | Temperature (low) | Temperature (high) |  
| ---- | ----------------- | -------------------|  
| 1900 |               -10 |                 25 |  
| 1910 |               -15 |                 30 |  
| 1920 |               -10 |                 32 |  

so i did a tweak. now it work

yilliot commented 10 years ago

I tried to implement doTables function for javascript in Markdown.Converter.js by referring js markdown extra

but my js skill not allow me to do that.

stephenharris commented 10 years ago

I've been following the progress of: https://github.com/jmcmanus/pagedown-extra

That's probably the most likely route for wp-markdown as it builds on the existing pagedown. The readme for pagedown-extra says the version of pagedown released in February 2013 is required (I can't remember off the top of my head what version wp-markdown is running).

I suspect, just updating pagedown and implementing pagedown-extra will be fairly straightforward...

(Initial tests of your patch have all passed :). Still creating more though....)