<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -76,6 +76,8 @@ or link to plain URLs like this: [http://github.com/chneukirchen/challis].
 HTML special chars are escaped with the exception of entities
 (e.g. &amp;copy;) which are left as-is.
 
+Any character can be escaped by writing a \\ before it: `void\*`.
+
 Insert images with double braces:
 
 [[alt text here... http://example.org/img.jpg]]</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,8 @@
 
 class Challis &lt; String
   def pfmt(t)
-    t.gsub(/&amp;(?!#\d+;|#x[\da-fA-F]+;|\w+;)/, &quot;&amp;amp;&quot;). # keep entities
+    t.gsub(/\\([^\\\n]|\\(?!\n))/) { &quot;&amp;ChallisEscape#{$&amp;[1]};&quot; }.
+      gsub(/&amp;(?!#\d+;|#x[\da-fA-F]+;|\w+;)/, &quot;&amp;amp;&quot;). # keep entities
       gsub(&quot;&lt;&quot;, &quot;&amp;lt;&quot;).
       gsub(&quot;&gt;&quot;, &quot;&amp;gt;&quot;).
       gsub('&quot;', &quot;&amp;quot;&quot;).
@@ -20,6 +21,7 @@ class Challis &lt; String
       gsub(/\[(\S+)\]/m,              '&lt;a href=&quot;\1&quot;&gt;\1&lt;/a&gt;').
       gsub(/\[(.*?)\s?(\S+)\]/m,      '&lt;a href=&quot;\2&quot;&gt;\1&lt;/a&gt;').
       gsub(/\{([\w:.-]+) (.*?)\}/m,   '&lt;span class=&quot;\1&quot;&gt;\2&lt;/span&gt;').
+      gsub(/&amp;ChallisEscape(\d+);/) { $1.to_i.chr }.
       strip
   end
   </diff>
      <filename>lib/challis.rb</filename>
    </modified>
    <modified>
      <diff>@@ -285,12 +285,26 @@ Challis can do *italic* and **bold**.
 They also *work
 for **multiple**
 lines*.
+
+Inline formatting can be \*escaped\*.  \\ produces a backslash.
+
+New\\
+line
+
+\&lt;del\&gt;Raw HTML\&lt;/del\&gt;
 IN
 &lt;p&gt;Challis can do &lt;em&gt;italic&lt;/em&gt; and &lt;strong&gt;bold&lt;/strong&gt;.&lt;/p&gt;
 
 &lt;p&gt;They also &lt;em&gt;work
 for &lt;strong&gt;multiple&lt;/strong&gt;
 lines&lt;/em&gt;.&lt;/p&gt;
+
+&lt;p&gt;Inline formatting can be *escaped*.  \ produces a backslash.&lt;/p&gt;
+
+&lt;p&gt;New&lt;br&gt;
+line&lt;/p&gt;
+
+&lt;p&gt;&lt;del&gt;Raw HTML&lt;/del&gt;&lt;/p&gt;
 OUT
   end
 </diff>
      <filename>test/spec_challis.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>59092a813a0f216af194cd840473c79461ecc425</id>
    </parent>
  </parents>
  <author>
    <name>Christian Neukirchen</name>
    <email>chneukirchen@gmail.com</email>
  </author>
  <url>http://github.com/chneukirchen/challis/commit/8608a04cf7fe8edf107fffe748b31e19d874dad0</url>
  <id>8608a04cf7fe8edf107fffe748b31e19d874dad0</id>
  <committed-date>2009-06-06T05:03:58-07:00</committed-date>
  <authored-date>2009-06-06T05:03:58-07:00</authored-date>
  <message>Add character escaping</message>
  <tree>86ef6339b6e98be78aa47f6c95ff434976ab9862</tree>
  <committer>
    <name>Christian Neukirchen</name>
    <email>chneukirchen@gmail.com</email>
  </committer>
</commit>
