<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-336308386934546555.post6936739971799482067..comments</id><updated>2010-02-03T12:53:53.864+08:00</updated><title type='text'>Comments on C for Coding: Markdown, Block Parsing and the Road to Hell</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.cforcoding.com/feeds/6936739971799482067/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html'/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-6325124257531041546</id><published>2010-02-03T12:53:53.864+08:00</published><updated>2010-02-03T12:53:53.864+08:00</updated><title type='text'>@StoneCypher: did I? Not that I can see. What are ...</title><content type='html'>@StoneCypher: did I? Not that I can see. What are you referring to?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/6325124257531041546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/6325124257531041546'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html?showComment=1265172833864#c6325124257531041546' title=''/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07140129710674369084'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-6936739971799482067' source='http://www.blogger.com/feeds/336308386934546555/posts/default/6936739971799482067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-5549984013069528067</id><published>2010-02-03T12:51:53.362+08:00</published><updated>2010-02-03T12:51:53.362+08:00</updated><title type='text'>Did you just claim that Java invented the sealed c...</title><content type='html'>Did you just claim that Java invented the sealed class concept?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/5549984013069528067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/5549984013069528067'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html?showComment=1265172713362#c5549984013069528067' title=''/><author><name>StoneCypher</name><uri>http://www.blogger.com/profile/07701245705928548668</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-6936739971799482067' source='http://www.blogger.com/feeds/336308386934546555/posts/default/6936739971799482067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-3053343246084815013</id><published>2010-02-02T15:06:19.694+08:00</published><updated>2010-02-02T15:06:19.694+08:00</updated><title type='text'>@Evan: your supposition regarding resultant markup...</title><content type='html'>@Evan: your supposition regarding resultant markup is correct. But, like I said, I&amp;#39;ll probably code a special case for the previous behaviour at least as an option.&lt;br /&gt;&lt;br /&gt;Regarding block-level tags, my code is actually far less strict about their placement and this is the exception to the block-then-inline rule I referred to earlier: the inline parse may find block level tags.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m also planning to go further and turn markup into markdown where applicable.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/3053343246084815013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/3053343246084815013'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html?showComment=1265094379694#c3053343246084815013' title=''/><author><name>William Shields</name><uri>http://www.blogger.com/profile/18356811199950883367</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07140129710674369084'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-6936739971799482067' source='http://www.blogger.com/feeds/336308386934546555/posts/default/6936739971799482067' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-336308386934546555.post-8214734489521121805</id><published>2010-02-02T14:47:22.049+08:00</published><updated>2010-02-02T14:47:22.049+08:00</updated><title type='text'>I'm not sure you can drop the case of list items w...</title><content type='html'>I&amp;#39;m not sure you can drop the case of list items with paragraphs.  For one, I&amp;#39;ve always liked a bit more space around my bullet points which this gives you an easy way to do.  For another, if you do the following markdown will create HTML with some funky spacing:&lt;br /&gt;&lt;br /&gt; - One&lt;br /&gt;&lt;br /&gt; - Two&lt;br /&gt;&lt;br /&gt;   Too&lt;br /&gt;&lt;br /&gt; - Three&lt;br /&gt;&lt;br /&gt; - Four&lt;br /&gt;&lt;br /&gt;If I understand your rules correctly, with your parser this will produce the following HTML:&lt;br /&gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;one&amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;two&amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;too&amp;lt;/p&amp;gt;&lt;br /&gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;three&amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;four&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;Whereas the current parser produces:&lt;br /&gt;&lt;br /&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;&amp;lt;p&amp;gt;one&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;two&amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;too&amp;lt;/p&amp;gt;&lt;br /&gt;  &amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;&amp;lt;p&amp;gt;three&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;  &amp;lt;li&amp;gt;&amp;lt;p&amp;gt;four&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;&lt;br /&gt;Which looks a lot better.&lt;br /&gt;&lt;br /&gt;P.S. You didn&amp;#39;t mention block level HTML tags, which &amp;quot;must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces&amp;quot;. That&amp;#39;s being handled okay?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/8214734489521121805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/336308386934546555/6936739971799482067/comments/default/8214734489521121805'/><link rel='alternate' type='text/html' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html?showComment=1265093242049#c8214734489521121805' title=''/><author><name>Evan</name><uri>http://www.blogger.com/profile/09325647011829370978</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.cforcoding.com/2010/02/markdown-block-parsing-and-road-to-hell.html' ref='tag:blogger.com,1999:blog-336308386934546555.post-6936739971799482067' source='http://www.blogger.com/feeds/336308386934546555/posts/default/6936739971799482067' type='text/html'/></entry></feed>