Sep 2

Markdown

Daring Fireball: Markdown Syntax Documentation: I’ve been playing around with some of the plugins in the MT3 Plugin Pack. Markdown is a plaintext to HTML convertor, much like Textile. However, there’s a philosphy behind it:

Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. […]

He’s really on to something here, because even unconverted, raw Markdown is really, really readable, due mainly to his removing URLs from the flow of the page. This seems like a small thing, but, in practice, it makes things SO much easier.

Here, read this. This is some markdown text for one of the pages on his site. You can read it really well, can’t you? And this is raw — the post-Markdown version is here.

I really like the practice of the “reference” style URLs. For instance, this markdown…


[Gadgetopia][gdtc] is a good site.

…will link the words “Gadgetopia” to a URL specified anywhere else on the page, like this:


[gdtc]: http://www.gadgetopia.com/

So you could set all your links up like footnotes at the end of the text, instead of jumbled up in the word flow. Very nicely done. I could actually see unleashing Markdown on users, whereas Textile was a geek-only affair.


Comments

by Már Örlygsson,   September 3, 2004 3:56 AM  

[Note: After this comment was posted, I edited the entry and removed incorrect information. -- Deane]

"Or you can omit the second bracketed phrase completely"

Actually, you can't omit the second bracket completely, However, you can leave it empty, like this:

[Gadgetopia][] is a good site.

..and later on that page...

[Gadgetopia]: <a href="http://www.gadgetopia.com/">http://www.gadgetopia.com/</a>

Much discussion went on about this on the Markdown mailing-list earlier this summer, and it was decided (by John) that requiring the pair of empty bracket, was a tiny sacrifice in readability really worth accepting, because it removed a lot of ambiguity from the syntax.


by Joe,   September 3, 2004 8:44 AM  

This looks awesome, Deane. So when does GTDC start using it? =)


by Deane,   September 3, 2004 8:56 AM  

It's already installed. Select it from the "Text Formatting" drop-down at the bottom of the editing screen.


by Joe,   September 3, 2004 9:31 AM  

It doesn't work too well. When I entered

Happy Birthday Deane

I got the H3 tag when I looked at the preview, but it still had the hash marks in it on the front page.


by Deane,   September 3, 2004 1:12 PM  

See this comment:

http://www.gadgetopia.com/2004/08/31/MT31UpgradeReport.html#CommentID_4104


by Deane,   September 3, 2004 1:13 PM  

There's a PHP port:

http://www.michelf.com/projects/php-markdown/



Add Comment


Want to advertise on this site? Contact FM.
Web Hosting Web hosting, dedicated servers and Web design services
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!