<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -912,7 +912,7 @@ class RedCloth3 &lt; String
     end
 
     IMAGE_RE = /
-            (&lt;p&gt;|\s|^)           # start of line?
+            (&gt;|\s|^)           # start of line?
             \!                   # opening
             (\&lt;|\=|\&gt;)?          # optional alignment atts
             (#{C})               # optional style,class atts</diff>
      <filename>lib/redcloth3.rb</filename>
    </modified>
    <modified>
      <diff>@@ -81,6 +81,19 @@ class ApplicationHelperTest &lt; HelperTestCase
     to_test.each { |text, result| assert_equal &quot;&lt;p&gt;#{result}&lt;/p&gt;&quot;, textilizable(text) }
   end
   
+  def test_inline_images_inside_tags
+    raw = &lt;&lt;-RAW
+h1. !foo.png! Heading
+
+Centered image:
+
+p=. !bar.gif!
+RAW
+
+    assert textilizable(raw).include?('&lt;img src=&quot;foo.png&quot; alt=&quot;&quot; /&gt;')
+    assert textilizable(raw).include?('&lt;img src=&quot;bar.gif&quot; alt=&quot;&quot; /&gt;')
+  end
+  
   def test_acronyms
     to_test = {
       'this is an acronym: GPL(General Public License)' =&gt; 'this is an acronym: &lt;acronym title=&quot;General Public License&quot;&gt;GPL&lt;/acronym&gt;',</diff>
      <filename>test/unit/helpers/application_helper_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>03548f2d63bea5e33613f0ba011af5b2c1838f04</id>
    </parent>
  </parents>
  <author>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </author>
  <url>http://github.com/bru/redmine/commit/9943f64ff07527814be87328084665952d97a5f3</url>
  <id>9943f64ff07527814be87328084665952d97a5f3</id>
  <committed-date>2009-11-04T02:22:57-08:00</committed-date>
  <authored-date>2009-11-04T02:22:57-08:00</authored-date>
  <message>Fixed: inline images in wiki headings (#4112).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2999 e93f8b46-1217-0410-a6f0-8f06a7374b81</message>
  <tree>ea1fd4b4080b2411508471f087fa2bf6ef7c1898</tree>
  <committer>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </committer>
</commit>
