Found another problem:
This:
This paragraph is aligned left but if you add this:
%{color:blue}@p>.@% to the beginning it will be aligned right.
Should produce:
<p>This paragraph is aligned left but if you add this: <span
style="color:blue;"><code>p>.</code></span> to the beginning it will
be aligned right.</p>
But instead produces:
<p style="text-align:right;">This paragraph is aligned left but if
you add this: <span style="color:blue;"><code>p>.</code></span>
to the beginning it will be aligned right.</p>
I feel a little bad just sending list messages about problems but of
course the reason I am is because I was inspired to use RedCloth
because of all the great work you've done!
There are now two added tests in the patch below (also attached):
Index: trunk/test/code.yml
===================================================================
--- trunk/test/code.yml (revision 284)
+++ trunk/test/code.yml (working copy)
@@ -7,6 +7,15 @@
in: 'Please type @cat "file.txt" > otherfile.txt@ at the prompt.'
html: '<p>Please type <code>cat "file.txt" > otherfile.txt</code>
at the prompt.</p>'
---
+name: more inlne code escapement
+in: 'Regex-based string substitution with Ruby\'s gsub!:
@"123<789".gsub!(/</, "") => "123789"@'
+html: '<p>Regex-based string substitution with Ruby’s gsub!:
<code>123<789".gsub!(/</, "") => "123789"</code></p>'
+---
+name: inlne code escapement describing textile paragraph styling
+in: 'This paragraph is aligned left but if you add this:
%{color:blue}@p>.@% to the beginning it will be aligned right.'
+html: '<p>This paragraph is aligned left but if you add this: <span
style="color:blue;"><code>p>.</code></span> to the beginning it will
be aligned right.</p>'
+or:blue;"><code>p>.</code></span> to the beginning it will be
aligned right.</p>
+---
name: escaping in blockcode
in: 'bc. This is within a block of code, so < and > should be
entities. You can talk about a <p class="foo"> tag if you wish and
it will be properly escaped.'
html: '<pre><code>This is within a block of code, so < and >
should be entities. You can talk about a <p class="foo"> tag
if you wish and it will be properly escaped.</code></pre>'
on 23.03.2008 17:11