docs/proposal.html in maruku-0.4.2.1 vs docs/proposal.html in maruku-0.5.0

- old
+ new

@@ -1,12 +1,16 @@ -<?xml version='1.0' encoding='utf-8'?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><meta content='text/html; charset=utf-8' http-equiv='Content-type' /><title>Proposal for adding a meta-data syntax to Markdown</title><link href='style.css' rel='stylesheet' type='text/css' /></head><body> +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC + "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" + "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> +<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> +<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>Proposal for adding a meta-data syntax to Markdown</title><link href='style.css' rel='stylesheet' type='text/css' /> +</head> +<body> <h1 id='proposal_for_adding_a_metadata_syntax_to_markdown'>Proposal for adding a meta-data syntax to Markdown</h1> -<p>This document describes a syntax for attaching meta-data to block-level elements (headers, paragraphs, code blocks,&hellip;), and to span-level elements (links, images,&hellip;).</p> +<p>This document describes a syntax for attaching meta-data to block-level elements (headers, paragraphs, code blocks,&#8230;), and to span-level elements (links, images,&#8230;).</p> <p><strong><em>Note: this is an evolving proposal</em></strong></p> <p>Last updated <strong>January 10th, 2007</strong>:</p> @@ -23,11 +27,11 @@ <pre><code>{:ref_id: key=val .class #id } </code></pre> <p>instead of:</p> <pre><code>{ref_id}: key=val .class #id </code></pre> -<p>Converters that don&rsquo;t use this syntax may just ignore everything which is in curly braces and starts with &rdquo;:&rdquo;.</p> +<p>Converters that don&#8217;t use this syntax may just ignore everything which is in curly braces and starts with &#8221;:&#8221;.</p> </li> <li> <p>IAL can be put both <em>before</em> and <em>after</em> the element. There is no ambiguity as a blank line is needed between elements:</p> <pre><code>Paragraph 1 @@ -107,11 +111,11 @@ <li> <p><code>#myid</code> is a shortcut for <code>id=myid</code></p> </li> <li> -<p><code>.myclass</code> means &ldquo;add <code>myclass</code> to the current <code>class</code> attribute&rdquo;.</p> +<p><code>.myclass</code> means &#8220;add <code>myclass</code> to the current <code>class</code> attribute&#8221;.</p> <p>So these are equivalent:</p> <pre><code>{: .class1 .class2} {: class=&quot;class1 class2&quot;}</code></pre></li> </ul> @@ -141,17 +145,17 @@ {: #myid .myclass} </code></pre> <p>Attribute lists may be indented up to 3 spaces:</p> <pre><code>Paragraph1 -&not;{:ok} +&#172;{:ok} Paragraph2 -&not;&not;{:ok} +&#172;&#172;{:ok} Paragraph2 -&not;&not;&not;{:ok}</code></pre> +&#172;&#172;&#172;{:ok}</code></pre> <h3 id='for_headers'><span class='maruku_section_number'>3.2. </span>For headers</h3> <p>For headers, you can put attribute lists on the same line:</p> <pre><code>### Header ### {: #myid} @@ -264,11 +268,11 @@ <p>Inside a quoted value you <strong>must</strong> escape the other kind of quote.</p> <p>Also, you <strong>must</strong> escape a closing curly brace <code>}</code> inside quoted values. This rule is for making life easier for interpreter that just want to skip the meta-data.</p> -<p>If you don&rsquo;t implement this syntax, you can get rid of the IAL by using this regular expression (this is written in Ruby):</p> +<p>If you don&#8217;t implement this syntax, you can get rid of the IAL by using this regular expression (this is written in Ruby):</p> <pre><code>r = /\{:(\\\}|[^\}])*\}/ s.gsub(r, &#39;&#39;) # ignore metadata</code></pre> <p>Basically: match everything contained in a couple of <code>{:</code> and <code>}</code>, taking care of escaping of <code>}</code>. This <code>\\\}|[^\}]</code> means: eat either any character which is not a <code>}</code> or an escape sequence <code>\}</code>.</p> @@ -281,6 +285,6 @@ </code></pre> <p>the result is:</p> <pre><code>this is -for me </code></pre><div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown interpreter for Ruby'>Maruku</a> at 13:45 on Thursday, January 11st, 2007.</span></div></body></html> +for me </code></pre><div class='maruku_signature'><hr /><span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown-superset interpreter for Ruby'>Maruku</a> at 14:11 on Tuesday, January 23rd, 2007.</span></div></body></html>