heronyang / pagedown

Automatically exported from code.google.com/p/pagedown
Other
0 stars 0 forks source link

Support for Markdown Extra #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 otakus...@gmail.com on 22 Feb 2012 at 7:05

GoogleCodeExporter commented 9 years ago
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 ad...@forwardmetrics.com on 2 Mar 2012 at 6:50

GoogleCodeExporter commented 9 years ago
Table support would be great.

Original comment by m...@bootstraponline.com on 7 Jun 2012 at 4:25

GoogleCodeExporter commented 9 years ago
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 m...@bootstraponline.com on 5 Jul 2012 at 5:38

GoogleCodeExporter commented 9 years ago
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 midnight...@gmail.com on 6 Jul 2012 at 4:35

GoogleCodeExporter commented 9 years ago
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 m...@bootstraponline.com on 6 Jul 2012 at 5:47

GoogleCodeExporter commented 9 years ago
+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 neatn...@gmail.com on 22 Jul 2012 at 1:06

GoogleCodeExporter commented 9 years ago
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 phil...@gmail.com on 21 Oct 2012 at 10:44

GoogleCodeExporter commented 9 years ago
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 sh...@codeforamerica.org on 25 Oct 2012 at 8:13

GoogleCodeExporter commented 9 years ago
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 jmcm...@gmail.com on 30 Jan 2013 at 7:09