{"id":800,"date":"2004-03-19T12:28:57","date_gmt":"2004-03-19T17:28:57","guid":{"rendered":"\/?p=800"},"modified":"2016-08-11T10:38:36","modified_gmt":"2016-08-11T14:38:36","slug":"markdown_10b3","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2004\/03\/19\/markdown_10b3\/","title":{"rendered":"Markdown 1.0b3"},"content":{"rendered":"<p>\r\nI don&rsquo;t plan to use <a href=\"http:\/\/www.daringfireball.net\/projects\/markdown\/\">Markdown<\/a>, John Gruber&rsquo;s <a href=\"http:\/\/docutils.sourceforge.net\/mirror\/setext.html\">Setext<\/a>-on-steriods Perl script. I&rsquo;m already using <a href=\"http:\/\/docutils.sourceforge.net\/rst.html\">reStructuredText<\/a>, which is more <a href=\"http:\/\/docutils.sourceforge.net\/spec\/rst\/reStructuredText.html#interpreted-text\">extensible<\/a> and supports multiple output formats. However, there are still some reasons that I find Markdown interesting.\r\n<\/p>\r\n\r\n<p>\r\nFirst, the <a href=\"http:\/\/www.daringfireball.net\/projects\/markdown\/syntax\">syntax<\/a> is extremely clean. It looks only slightly more structured than e-mail or Setext, hardly at all resembling the troff-like <a href=\"http:\/\/textism.com\/tools\/textile\/\">Textile<\/a> that it&rsquo;s often compared with.\r\n<\/p>\r\n\r\n<p>\r\nSecond, Markdown is unabashedly designed only for producing (X)HTML. It supports inline chunks of HTML without the need to escape anything.\r\n<\/p>\r\n\r\n<p>\r\nThird, the code. It&rsquo;s formatted and commented well. Rather than separating the parsing and output phases by building a rich internal representation, it follows the common Perl style of treating text transformation as a series of regex substitutions. Perhaps this is because Perl&rsquo;s syntax encourages the uses of regexes and discourages the use of references. Or perhaps it&rsquo;s because this approach is expedient when the only output format is HTML. In any case, the decision to make the internal representation a string led to some code that made me laugh out loud. You see, you can&rsquo;t really <a href=\"http:\/\/www.televisionwithoutpity.com\/story.cgi?show=131&amp;story=6386&amp;page=8&amp;sort=&amp;limit=\">repress<\/a> references. If you need them, they&rsquo;ll come back in another form: in this case as MD5 digests that stand in for chunks of protected text.\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>I don&rsquo;t plan to use Markdown, John Gruber&rsquo;s Setext-on-steriods Perl script. I&rsquo;m already using reStructuredText, which is more extensible and supports multiple output formats. However, there are still some reasons that I find Markdown interesting. First, the syntax is extremely clean. It looks only slightly more structured than e-mail or Setext, hardly at all resembling [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[337],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-markdown"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":9501,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions\/9501"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}