pagedown icon indicating copy to clipboard operation
pagedown copied to clipboard

Support for Markdown Extra

Open GoogleCodeExporter opened this issue 10 years ago • 9 comments

PHP Markdown Extra (http://michelf.com/projects/php-markdown/extra/) is a great 
extension to markdown which supports table, definition list, header id and 
abbreviation, tables and definition lists are especially usefull when writing 
blogs and other types of documents, so it would be nice to support it.

Original issue reported on code.google.com by [email protected] on 22 Feb 2012 at 7:05

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

Please please please add support for this extension. Markdown's inability to 
support basic tables and definition lists is the single reason I don't adopt 
Pagedown/Markdown for my projects.

Original comment by [email protected] on 2 Mar 2012 at 6:50

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

Table support would be great.

Original comment by [email protected] on 7 Jun 2012 at 4:25

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

I ported the table code from php-markdown extra to JavaScript.
https://github.com/bootstraponline/js_markdown_tables/blob/master/table.html

If there's any interest then I'll integrate it into pagedown and submit a patch.

Original comment by [email protected] on 5 Jul 2012 at 5:38

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

Would be very useful to me, but I haven't looked into pagedown's organization 
much to know what's involved in integrating. 

Original comment by [email protected] on 6 Jul 2012 at 4:35

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

I added pagedown integration. test_pagedown.html is an example of using 
pagedown with table support. Let me know what you think.

https://github.com/bootstraponline/js_markdown_tables/commit/7a80269383c17890feb
638685e493ce13b3f77bd

Original comment by [email protected] on 6 Jul 2012 at 5:47

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

+1 for definition lists.

MultiMarkdown (http://fletcherpenney.net/multimarkdown/features/) is another 
project with extensions. I particularly like the automatic cross-reference 
feature for linking within the document.

Original comment by [email protected] on 22 Jul 2012 at 1:06

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

I'd love to see this too.  For now the only way is to define a post-conversion 
hook which includes the algorithm for converting | --- | etc into html table 
elements?

Original comment by [email protected] on 21 Oct 2012 at 10:44

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

I really need tables to be included for training City Content Writers on how to 
write content for Honolulu Answers: 
http://answers.honolulu.gov/quick_answers/how-do-i-renew-my-driver-license . 
Desperately!

Original comment by [email protected] on 25 Oct 2012 at 8:13

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter

Pagedown's primary purpose is to render markdown on stackoverflow, and the 
stackoverflow guys don't want tables breaking their layout, so it seems 
unlikely this will be added in the near future. Instead of trying to get 
extensions added to the official repo or maintaining a fork, I created a simple 
plugin which can be found at http://github.com/jmcmanus/pagedown-extra. It's 
super easy to use. You just `Markdown.Extra.init(converter, options)` and then 
the converter will recognize the supported extensions. Tables and 
github-inspired code blocks are the only extensions supported atm, but adding 
others should be fairly straightforward.

Original comment by [email protected] on 30 Jan 2013 at 7:09

GoogleCodeExporter avatar Sep 12 '15 05:09 GoogleCodeExporter