Misc Cleanup

Cleaned up some dependencies, and added a mime_types.yml file for Mongrel-compatibility.
This commit is contained in:
Jacques Distler 2008-01-14 14:46:38 -06:00
parent f101ee9a21
commit 4586614914
89 changed files with 1265 additions and 1812 deletions

12
config/mime_types.yml Normal file
View file

@ -0,0 +1,12 @@
---
.avi: video/avi
.gz: application/x-gzip
.js: application/x-javascript
.nb: application/mathematica
.pdf: application/pdf
.svg: application/svg+xml
.tar: application/x-tar
.tex: application/x-tex
.xhtml: application/xhtml+xml
.xml: application/xml
.xslt: application/xslt+xml

View file

@ -1,4 +1,4 @@
require 'uri/common' #require 'uri/common'
# A chunk is a pattern of text that can be protected # A chunk is a pattern of text that can be protected
# and interrogated by a renderer. Each Chunk class has a # and interrogated by a renderer. Each Chunk class has a

View file

@ -24,9 +24,8 @@ module Engines
end end
class Textile < AbstractEngine class Textile < AbstractEngine
require 'sanitize'
include Sanitize
def mask def mask
require 'sanitize'
require 'redcloth' require 'redcloth'
redcloth = RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]) redcloth = RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts])
redcloth.filter_html = false redcloth.filter_html = false
@ -37,9 +36,8 @@ module Engines
end end
class Markdown < AbstractEngine class Markdown < AbstractEngine
require 'sanitize'
include Sanitize
def mask def mask
require 'sanitize'
require 'maruku' require 'maruku'
require 'maruku/ext/math' require 'maruku/ext/math'
@ -61,9 +59,8 @@ module Engines
end end
class MarkdownMML < AbstractEngine class MarkdownMML < AbstractEngine
require 'sanitize'
include Sanitize
def mask def mask
require 'sanitize'
require 'maruku' require 'maruku'
require 'maruku/ext/math' require 'maruku/ext/math'
@ -87,9 +84,8 @@ module Engines
end end
class Mixed < AbstractEngine class Mixed < AbstractEngine
require 'sanitize'
include Sanitize
def mask def mask
require 'sanitize'
require 'redcloth' require 'redcloth'
redcloth = RedCloth.new(@content, @content.options[:engine_opts]) redcloth = RedCloth.new(@content, @content.options[:engine_opts])
redcloth.filter_html = false redcloth.filter_html = false
@ -100,9 +96,8 @@ module Engines
end end
class RDoc < AbstractEngine class RDoc < AbstractEngine
require 'sanitize'
include Sanitize
def mask def mask
require 'sanitize'
require_dependency 'rdocsupport' require_dependency 'rdocsupport'
html = RDocSupport::RDocFormatter.new(@content).to_html html = RDocSupport::RDocFormatter.new(@content).to_html
sanitize_xhtml(html) sanitize_xhtml(html)

View file

@ -1,7 +1,4 @@
require 'wiki_words'
require 'chunks/chunk' require 'chunks/chunk'
require 'chunks/wiki'
require 'cgi'
# Contains all the methods for finding and replacing wiki related links. # Contains all the methods for finding and replacing wiki related links.
module WikiChunk module WikiChunk

View file

@ -1,7 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
require 'wiki_words'
class WikiWordsTest < Test::Unit::TestCase class WikiWordsTest < Test::Unit::TestCase

View file

@ -4,13 +4,14 @@ module MaRuKu; module Out; module HTML
def convert_to_mathml_itex2mml(kind, tex) def convert_to_mathml_itex2mml(kind, tex)
begin begin
if not $itex2mml_parser if not $itex2mml_parser
require 'sanitize'
require 'itextomml' require 'itextomml'
$itex2mml_parser = Itex2MML::Parser.new $itex2mml_parser = Itex2MML::Parser.new
end end
itex_method = {:equation=>:block_filter,:inline=>:inline_filter} itex_method = {:equation=>:block_filter,:inline=>:inline_filter}
mathml = $itex2mml_parser.send(itex_method[kind], tex) mathml = $itex2mml_parser.send(itex_method[kind], tex).to_utf8
doc = Document.new(mathml, {:respect_whitespace =>:all}).root doc = Document.new(mathml, {:respect_whitespace =>:all}).root
return doc return doc
rescue LoadError => e rescue LoadError => e

View file

@ -69,17 +69,11 @@ The HTML specification is maintained by the W3C.Operation Tigra Genesis is going
<p>*[Tigra Genesis]:</p> <p>*[Tigra Genesis]:</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>The HTML specification is maintained by the W3C.</p
The HTML specification is maintained by the W3C. ><p>*[HTML]: Hyper Text Markup Language
</p> *[W3C]: World Wide Web Consortium</p
<p> ><p>Operation Tigra Genesis is going well.</p
*[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium ><p>*[Tigra Genesis]:</p
</p> ></div
<p> >
Operation Tigra Genesis is going well.
</p>
<p>
*[Tigra Genesis]:
</p>
</div>

View file

@ -27,8 +27,9 @@ bar
<p><img src="/foo.jpg" alt="bar" title="" /></p> <p><img src="/foo.jpg" alt="bar" title="" /></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<img title='' src='/foo.jpg' alt='bar'/> ><img title='' src='/foo.jpg' alt='bar'
</p> /></p
</div> ></div
>

View file

@ -31,8 +31,8 @@ md_el(:document,[
{:b: a}</p> {:b: a}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>{a}: a
{a}: a {:b: a} {:b: a}</p
</p> ></div
</div> >

View file

@ -42,11 +42,10 @@ Paragraph1Paragraph2
Paragraph2</p> Paragraph2</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph1
Paragraph1 {:#par1} {:#par1}</p
</p> ><p>{:#par2}
<p> Paragraph2</p
{:#par2} Paragraph2 ></div
</p> >
</div>

View file

@ -79,27 +79,15 @@ Header with attributesHeader with attributesHeader no attributesParagraph with a
<p>{:hello: .chello}</p> <p>{:hello: .chello}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<h2> ><h2>Header with attributes {#header1} </h2
Header with attributes {#header1} ><h3>Header with attributes ### {#header2}</h3
</h2> ><h3>Header no attributes</h3
<h3> ><p>{:warn2}Paragraph with a.
Header with attributes ### {#header2} {#par1}</p
</h3> ><p>Paragraph with <em>emphasis</em
<h3> >{:hello notfound}
Header no attributes {#par2}</p
</h3> ><p>{:hello: .chello}</p
<p> ></div
{:warn2}Paragraph with a. {#par1} >
</p>
<p>
Paragraph with
<em>
emphasis
</em>
{:hello notfound} {#par2}
</p>
<p>
{:hello: .chello}
</p>
</div>

View file

@ -40,11 +40,10 @@ Paragraph
{:b: a}</p> {:b: a}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph
Paragraph {:a} {:a}</p
</p> ><p>{:a: b}
<p> {:b: a}</p
{:a: b} {:b: a} ></div
</p> >
</div>

View file

@ -35,11 +35,9 @@ Paragraph2
<p>{paragraph}: .maruku-par</p> <p>{paragraph}: .maruku-par</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph2
Paragraph2 {#2} {#2}</p
</p> ><p>{paragraph}: .maruku-par</p
<p> ></div
{paragraph}: .maruku-par >
</p>
</div>

View file

@ -36,11 +36,8 @@ Linea 1Linea 2
<p>Linea 2</p> <p>Linea 2</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Linea 1</p
Linea 1 ><p>Linea 2</p
</p> ></div
<p> >
Linea 2
</p>
</div>

View file

@ -103,29 +103,26 @@ four
</code></pre> </code></pre>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This block is composed of three lines:</p
This block is composed of three lines: ><pre
</p> ><code>one
<pre>
<code> three
one three </code
</code> ></pre
</pre> ><p>This block is composed of 5</p
<p> ><pre
This block is composed of 5 ><code>one
</p>
<pre>
<code> four
one four </code
</code> ></pre
</pre> ><p>This block is composed of 2</p
<p> ><pre
This block is composed of 2 ><code>two
</p> </code
<pre> ></pre
<code> ></div
two >
</code>
</pre>
</div>

View file

@ -26,8 +26,7 @@ test:
<p>[test][]:</p> <p>[test][]:</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>[test][]:</p
[test][]: ></div
</p> >
</div>

View file

@ -64,15 +64,13 @@ hellohh c1c2
<p>{:t: scope="row"}</p> <p>{:t: scope="row"}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>hello
hello {: summary="Table summary" .class1 style="color:red"} {: summary="Table summary" .class1 style="color:red"}</p
</p> ><p>h | h
<p> ----------|--
h | h ----------|-- {:t} c1 | c2 {: summary="Table summary" .class1 {:t} c1 | c2
style="color:red"} {: summary="Table summary" .class1 style="color:red"}</p
</p> ><p>{:t: scope="row"}</p
<p> ></div
{:t: scope="row"} >
</p>
</div>

View file

@ -50,13 +50,14 @@ end tell
</code></pre> </code></pre>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Here is an example of AppleScript:</p
Here is an example of AppleScript: ><pre
</p> ><code>tell application "Foo"
<pre> beep
<code> end tell
tell application "Foo" beep end tell tab tab
</code> </code
</pre> ></pre
</div> ></div
>

View file

@ -43,15 +43,15 @@ Code
</blockquote> </blockquote>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<blockquote> ><blockquote>
<p> <p>Code</p
Code >
</p> <pre
<pre> ><code>Ciao
<code> </code
Ciao ></pre
</code> >
</pre> </blockquote
</blockquote> ></div
</div> >

View file

@ -99,37 +99,26 @@ This is code (4 spaces):This is not codeThis is code (1 tab):This is not code
</code></pre> </code></pre>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This is code (4 spaces):</p
This is code (4 spaces): ><pre
</p> ><code>Code
<pre> </code
<code> ></pre
Code ><p>This is not code</p
</code> ><pre
</pre> ><code>Code
<p> </code
This is not code ></pre
</p> ><p>This is code (1 tab):</p
<pre> ><pre
<code> ><code>Code
Code </code
</code> ></pre
</pre> ><p>This is not code</p
<p> ><pre
This is code (1 tab): ><code>Code
</p> </code
<pre> ></pre
<code> ></div
Code >
</code>
</pre>
<p>
This is not code
</p>
<pre>
<code>
Code
</code>
</pre>
</div>

View file

@ -39,10 +39,12 @@ ijkl</li>
</ol> </ol>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ol> ><ol>
<li> <li>abcd
abcd efgh ijkl efgh
</li> ijkl</li
</ol> >
</div> </ol
></div
>

View file

@ -25,15 +25,10 @@ Hello! how are you?
<p><em>Hello!</em> how are <strong>you</strong>?</p> <p><em>Hello!</em> how are <strong>you</strong>?</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<em> ><em>Hello!</em
Hello! > how are <strong>you</strong
</em> >?</p
how are ></div
<strong> >
you
</strong>
?
</p>
</div>

View file

@ -27,7 +27,11 @@ This is an email address:
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<p>This is an email address: <a href="&#109;&#x61;&#x69;&#108;&#116;&#111;:&#97;&#x6E;&#100;&#114;&#x65;&#x61;&#64;&#105;&#110;&#x76;&#97;&#x6C;&#x69;&#100;&#46;&#x69;&#x74;">&#97;&#x6E;&#100;&#114;&#x65;&#x61;&#64;&#105;&#110;&#x76;&#97;&#x6C;&#x69;&#100;&#46;&#x69;&#x74;</a></p> <p>This is an email address: <a href="&#109;&#97;&#x69;&#108;&#116;&#x6F;:&#97;&#110;&#x64;&#114;&#101;&#x61;&#64;&#x69;&#x6E;&#118;&#x61;&#108;&#x69;&#x64;&#x2E;&#x69;&#116;">&#97;&#110;&#x64;&#114;&#101;&#x61;&#64;&#x69;&#x6E;&#118;&#x61;&#108;&#x69;&#x64;&#x2E;&#x69;&#116;</a></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
Error: #<TypeError: no implicit conversion from nil to integer> <div
><p>This is an email address: <a href='&amp;#109;&amp;#97;&amp;#x69;&amp;#108;&amp;#116;&amp;#x6F;:&amp;#97;&amp;#110;&amp;#x64;&amp;#114;&amp;#101;&amp;#x61;&amp;#64;&amp;#x69;&amp;#x6E;&amp;#118;&amp;#x61;&amp;#108;&amp;#x69;&amp;#x64;&amp;#x2E;&amp;#x69;&amp;#116;'>&#97;&#110;&#x64;&#114;&#101;&#x61;&#64;&#x69;&#x6E;&#118;&#x61;&#108;&#x69;&#x64;&#x2E;&#x69;&#116;</a
></p
></div
>

View file

@ -35,11 +35,8 @@ This is iso-8859-1: àèìàù.
<p>This is iso-8859-1: àèìàù.</p> <p>This is iso-8859-1: àèìàù.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Encoding: iso-8859-1</p
Encoding: iso-8859-1 ><p>This is iso-8859-1: àèìàù.</p
</p> ></div
<p> >
This is iso-8859-1: àèìàù.
</p>
</div>

View file

@ -30,11 +30,8 @@ Japanese: マルク
<p>Japanese: マルク</p> <p>Japanese: マルク</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Italian: àèìòù.</p
Italian: àèìòù. ><p>Japanese: マルク</p
</p> ></div
<p> >
Japanese: マルク
</p>
</div>

View file

@ -121,49 +121,27 @@ Maruku translates HTML entities to the equivalent in LaTeX:EntityResultabEntity-
<p>It should read just like this: <code>&amp;copy;</code>.</p> <p>It should read just like this: <code>&amp;copy;</code>.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Maruku translates HTML entities to the equivalent in LaTeX:</p
Maruku translates HTML entities to the equivalent in LaTeX: ><p>Entity | Result
</p> ------------|----------
<p> <code>&amp;copy;</code
Entity | Result ------------|---------- > | &copy;
<code> <code>&amp;pound;</code
&amp;copy; > | &pound;
</code> <code>a&amp;nbsp;b</code
| &copy; > | a&nbsp;b
<code> <code>&amp;lambda;</code
&amp;pound; > | &lambda;
</code> <code>&amp;mdash;</code
| &pound; > | &mdash;</p
<code> ><p>Entity-substitution does not happen in code blocks or inline code.</p
a&amp;nbsp;b ><p>The following should not be translated:</p
</code> ><pre
| a&nbsp;b ><code>&amp;copy;
<code> </code
&amp;lambda; ></pre
</code> ><p>It should read just like this: <code>&amp;copy;</code
| &lambda; >.</p
<code> ></div
&amp;mdash; >
</code>
| &mdash;
</p>
<p>
Entity-substitution does not happen in code blocks or inline code.
</p>
<p>
The following should not be translated:
</p>
<pre>
<code>
&amp;copy;
</code>
</pre>
<p>
It should read just like this:
<code>
&amp;copy;
</code>
.
</p>
</div>

View file

@ -74,7 +74,7 @@ Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> *
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<p>Hello: ! ! ` { } <math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><merror><mtext></mtext></merror></math> ( ) # . ! * * *</p> <p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em>, <p>Ora, <em>emphasis</em>, <strong>bold</strong>, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em>,
incre<em>dible</em>e!</p> incre<em>dible</em>e!</p>
@ -86,52 +86,20 @@ Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> *
<p>End of <code>paragraph</code></p> <p>End of <code>paragraph</code></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p
Hello: ! ! ` { } ><p>Ora, <em>emphasis</em
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'> >, <strong>bold</strong
<merror> >, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em
<mtext/> >,
</merror> incre<em>dible</em
</math> >e!</p
( ) # . ! * * * ><p>This is <code>Code with a special: -&gt; ` &lt;-</code
</p> >(after)</p
<p> ><p
Ora, ><code>Start</code
<em> > of paragraph</p
emphasis ><p>End of <code>paragraph</code
</em> ></p
, ></div
<strong> >
bold
</strong>
, * &lt;- due asterischi-> * , un underscore-> _ ,
<em>
emphasis
</em>
, incre
<em>
dible
</em>
e!
</p>
<p>
This is
<code>
Code with a special: -&gt; ` &lt;-
</code>
(after)
</p>
<p>
<code>
Start
</code>
of paragraph
</p>
<p>
End of
<code>
paragraph
</code>
</p>
</div>

View file

@ -69,14 +69,12 @@ ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeT
: The fruit of an evergreen tree of the genus Citrus.</p> : The fruit of an evergreen tree of the genus Citrus.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>CSS: style.css</p
CSS: style.css ><p>Apple
</p> : Pomaceous fruit of plants of the genus Malus in
<p> the family Rosaceae.</p
Apple : Pomaceous fruit of plants of the genus Malus in the family Rosaceae. ><p>Orange
</p> : The fruit of an evergreen tree of the genus Citrus.</p
<p> ></div
Orange : The fruit of an evergreen tree of the genus Citrus. >
</p>
</div>

View file

@ -83,30 +83,17 @@ Header 1Header 2Header 3Then you can create links to different parts of the same
<a href="#header3">Link back to header 3</a></p> <a href="#header3">Link back to header 3</a></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<h1> ><h1>Header 1 {#header1}</h1
Header 1 {#header1} ><h2>Header 2 {#header2}</h2
</h1> ><h3>Header 3 ### {#header3}</h3
<h2> ><p>Then you can create links to different parts of the same document like this:</p
Header 2 {#header2} ><p
</h2> ><a href='#header1'>Link back to header 1</a
<h3> >,
Header 3 ### {#header3} <a href='#header2'>Link back to header 2</a
</h3> >,
<p> <a href='#header3'>Link back to header 3</a
Then you can create links to different parts of the same document like this: ></p
</p> ></div
<p> >
<a href='#header1'>
Link back to header 1
</a>
,
<a href='#header2'>
Link back to header 2
</a>
,
<a href='#header3'>
Link back to header 3
</a>
</p>
</div>

View file

@ -52,12 +52,11 @@ Content Cell | Content Cell
Content Cell | Content Cell</p> Content Cell | Content Cell</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>CSS: style.css</p
CSS: style.css ><p>First Header | Second Header
</p> ------------- | -------------
<p> Content Cell | Content Cell
First Header | Second Header ------------- | ------------- Content Cell | Content Cell | Content Cell</p
Content Cell Content Cell | Content Cell ></div
</p> >
</div>

View file

@ -123,30 +123,21 @@ This is second sentence (same paragraph).</p>
<p>This is not a footnote.</p> <p>This is not a footnote.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>That's some text with a footnote [^b] and another [^c] and another [^a].</p
That's some text with a footnote [^b] and another [^c] and another [^a]. ><p>[^a]: And that's the footnote.</p
</p> ><pre
<p> ><code>That's the second paragraph of the footnote.
[^a]: And that's the footnote. </code
</p> ></pre
<pre> ><p>[^b]: And that's the footnote.
<code> This is second sentence (same paragraph).</p
That's the second paragraph of the footnote. ><p>[^c]:
</code> This is the very long one.</p
</pre> ><pre
<p> ><code>That's the second paragraph.
[^b]: And that's the footnote. This is second sentence (same paragraph). </code
</p> ></pre
<p> ><p>This is not a footnote.</p
[^c]: This is the very long one. ></div
</p> >
<pre>
<code>
That's the second paragraph.
</code>
</pre>
<p>
This is not a footnote.
</p>
</div>

View file

@ -51,23 +51,12 @@ A title with emphasisA title with emphasisA title with emphasis
<h4>A title with <em>emphasis</em></h4> <h4>A title with <em>emphasis</em></h4>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<h1> ><h1>A title with <em>emphasis</em
A title with ></h1
<em> ><h2>A title with <em>emphasis</em
emphasis ></h2
</em> ><h4>A title with <em>emphasis</em
</h1> ></h4
<h2> ></div
A title with >
<em>
emphasis
</em>
</h2>
<h4>
A title with
<em>
emphasis
</em>
</h4>
</div>

View file

@ -47,10 +47,7 @@ Examples of numeric character references include or for the copyright symbol,
<p>Examples of numeric character references include &#169; or &#xA9; for the copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and &#1575; or &#x627; for the Arabic letter alef.</p> <p>Examples of numeric character references include &#169; or &#xA9; for the copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and &#1575; or &#x627; for the Arabic letter alef.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Examples of numeric character references include &#169; or &#xA9; for the copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and &#1575; or &#x627; for the Arabic letter alef.</p
Examples of numeric character references include &#169; or &#xA9; for the ></div
copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and >
&#1575; or &#x627; for the Arabic letter alef.
</p>
</div>

View file

@ -57,10 +57,11 @@ md_el(:document,[
<hr /> <hr />
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<hr/> ><hr
<hr/> /><hr
<hr/> /><hr
<hr/> /><hr
<hr/> /><hr
</div> /></div
>

View file

@ -35,14 +35,12 @@ One 123
<p><div></div>123</p> <p><div></div>123</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>One
One <div
<div/> />123</p
123 ><p
</p> ><div
<p> />123</p
<div/> ></div
123 >
</p>
</div>

View file

@ -44,24 +44,14 @@ involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>,
<a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,</p> <a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>taking part in <a href='http://sied.dis.uniroma1.it/'>some arcane conspirations</a
taking part in > which
<a href='http://sied.dis.uniroma1.it/'> involve <b href='http://www.flickr.com/photos/censi/70893277/'>coffee</b
some arcane conspirations >,
</a> <a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>robots</a
which involve >,
<b href='http://www.flickr.com/photos/censi/70893277/'> <a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>sushi</a
coffee >,</p
</b> ></div
, >
<a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>
robots
</a>
,
<a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>
sushi
</a>
,
</p>
</div>

View file

@ -39,10 +39,11 @@ md_el(:document,[
</div> </div>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<div class='frame'> ><div class='frame'
<a href='http://www.flickr.com/photos/censi/54757256/' class='photo'> ><a href='http://www.flickr.com/photos/censi/54757256/' class='photo'
<img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt=''/> ><img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt=''
</a> /></a
</div> ></div
</div> ></div
>

View file

@ -35,12 +35,13 @@ md_el(:document,[
</div></p> </div></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<div class='frame'> ><div class='frame'
<a href='http://www.flickr.com/photos/censi/88561568/' class='photo'> ><a href='http://www.flickr.com/photos/censi/88561568/' class='photo'
<img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240'/> ><img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240'
</a> /></a
</div> ></div
</p> ></p
</div> ></div
>

View file

@ -79,50 +79,31 @@ md_el(:document,[
<p>{:html<em>use</em>syntax=true lang=xml}</p> <p>{:html<em>use</em>syntax=true lang=xml}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<code> ><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;</code
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt; ></p
</code> ><pre
</p> ><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
<pre> </code
<code> ></pre
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt; ><p>{:}</p
</code> ><pre
</pre> ><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
<p> </code
{:} ></pre
</p> ><p>{:lang=xml}</p
<pre> ><pre
<code> ><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt; </code
</code> ></pre
</pre> ><p>{:html<em>use</em
<p> >syntax=true lang=not_supported}</p
{:lang=xml} ><pre
</p> ><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
<pre> </code
<code> ></pre
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt; ><p>{:html<em>use</em
</code> >syntax=true lang=xml}</p
</pre> ></div
<p> >
{:html
<em>
use
</em>
syntax=true lang=not_supported}
</p>
<pre>
<code>
&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code>
</pre>
<p>
{:html
<em>
use
</em>
syntax=true lang=xml}
</p>
</div>

View file

@ -111,28 +111,17 @@ This page does not uilizes Cascading Style SheetsPlease mouseover to see the tit
style="border:0;width:188px;height:131px"</p> style="border:0;width:188px;height:131px"</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This page does not uilizes <img title='' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
This page does not uilizes /></p
<img title='' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/> ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
</p> /></p
<p> ><p>Please mouseover to see the title: <img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
Please mouseover to see the title: /></p
<img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/> ><p>I'll say it one more time: this page does not use <img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'
</p> /></p
<p> ><p>This is double size: ![Cascading Style Sheets] [css2]</p
Please mouseover to see the title: ><p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
<img title='Title ok!' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/> style="border:0;width:188px;height:131px"</p
</p> ></div
<p> >
I'll say it one more time: this page does not use
<img title='Optional title attribute' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets'/>
</p>
<p>
This is double size: ![Cascading Style Sheets] [css2]
</p>
<p>
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title
attribute" class=external style="border:0;width:188px;height:131px"
</p>
</div>

View file

@ -43,13 +43,9 @@ This is an image.This is an image.
<p>This is an ![image].</p> <p>This is an ![image].</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This is an <img src='image.jpg' alt='image'
This is an />.</p
<img src='image.jpg' alt='image'/> ><p>This is an ![image].</p
. ></div
</p> >
<p>
This is an ![image].
</p>
</div>

View file

@ -238,16 +238,16 @@ Line:
Position: Position:
Last 80 unconsumed characters: Last 80 unconsumed characters:
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow> <div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull' /sw/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse' /sw/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build' /sw/lib/ruby/1.8/rexml/document.rb:190:in `build'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize' /sw/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
bin/marutest:200:in `new' bin/marutest:200:in `new'
bin/marutest:200:in `run_test' bin/marutest:200:in `run_test'
bin/marutest:275:in `marutest' bin/marutest:274:in `marutest'
bin/marutest:272:in `each' bin/marutest:271:in `each'
bin/marutest:272:in `marutest' bin/marutest:271:in `marutest'
bin/marutest:347 bin/marutest:346
... ...
Missing end tag for 'img' (got "p") Missing end tag for 'img' (got "p")
Line: Line:

View file

@ -33,11 +33,8 @@ md_el(:document,[
<p markdown="1">Test **bold**</p> <p markdown="1">Test **bold**</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<div markdown='1'> ><div markdown='1'>Test **bold**</div
Test **bold** ><p markdown='1'>Test **bold**</p
</div> ></div
<p markdown='1'> >
Test **bold**
</p>
</div>

View file

@ -162,7 +162,7 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google
<p>Inline with title: <a href="http://google.com "Title"">Google images</a></p> <p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
<p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="&#x6D;&#x61;i&#108;&#x74;o:&#x62;&#x69;l&#108;&#64;&#x67;&#111;o&#x67;&#108;&#x65;&#46;&#x63;&#111;&#x6D;">&#x62;&#x69;l&#108;&#64;&#x67;&#111;o&#x67;&#108;&#x65;&#46;&#x63;&#111;&#x6D;</a> <p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="m&#97;i&#x6C;&#116;o:&#x62;&#105;&#x6C;&#x6C;&#64;&#x67;&#111;&#x6F;g&#x6C;&#101;&#x2E;&#x63;&#x6F;&#109;">&#x62;&#105;&#x6C;&#x6C;&#64;&#x67;&#111;&#x6F;g&#x6C;&#101;&#x2E;&#x63;&#x6F;&#109;</a>
or you might ask bill@google.com.</p> or you might ask bill@google.com.</p>
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p> <p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
@ -175,16 +175,16 @@ Line:
Position: Position:
Last 80 unconsumed characters: Last 80 unconsumed characters:
> >
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull' /sw/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse' /sw/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build' /sw/lib/ruby/1.8/rexml/document.rb:190:in `build'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize' /sw/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
bin/marutest:200:in `new' bin/marutest:200:in `new'
bin/marutest:200:in `run_test' bin/marutest:200:in `run_test'
bin/marutest:275:in `marutest' bin/marutest:274:in `marutest'
bin/marutest:272:in `each' bin/marutest:271:in `each'
bin/marutest:272:in `marutest' bin/marutest:271:in `marutest'
bin/marutest:347 bin/marutest:346
... ...
Missing end tag for 'p' (got "div") Missing end tag for 'p' (got "div")
Line: Line:

View file

@ -63,17 +63,18 @@ A list item with a blockquote:This is a blockquote inside a list item.
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li
<p> ><p>A list item with a blockquote:</p
A list item with a blockquote: >
</p> <blockquote>
<blockquote> <p>This is a blockquote
<p> inside a list item.</p
This is a blockquote inside a list item. >
</p> </blockquote
</blockquote> ></li
</li> >
</ul> </ul
</div> ></div
>

View file

@ -73,22 +73,20 @@ sit amet, consectetuer adipiscing elit.</p></li>
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li
<p> ><p>This is a list item with two paragraphs.</p
This is a list item with two paragraphs. >
</p> <p>This is the second paragraph in the list item. You're
<p> only required to indent the first line. Lorem ipsum dolor
This is the second paragraph in the list item. You're only required to sit amet, consectetuer adipiscing elit.</p
indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing ></li
elit. >
</p> <li
</li> ><p>other</p
<li> ></li
<p> >
other </ul
</p> ></div
</li> >
</ul>
</div>

View file

@ -85,27 +85,27 @@ A list item with a blockquote:This is a blockquote inside a list item.A list ite
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li
<p> ><p>A list item with a blockquote:</p
A list item with a blockquote: >
</p> <blockquote>
<blockquote> <p>This is a blockquote
<p> inside a list item.</p
This is a blockquote inside a list item. >
</p> </blockquote
</blockquote> ></li
</li> >
<li> <li
<p> ><p>A list item with a code block:</p
A list item with a code block: >
</p> <pre
<pre> ><code>&lt;code goes here&gt;
<code> </code
&lt;code goes here&gt; ></pre
</code> ></li
</pre> >
</li> </ul
</ul> ></div
</div> >

View file

@ -113,17 +113,18 @@ ciao</p>
ciao</p> ciao</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This is a list:
This is a list: * one * two * one
</p> * two</p
<p> ><p>This is not a list:
This is not a list: * one ciao * one
</p> ciao</p
<p> ><p>This is a list:
This is a list: 1. one 1. two 1. one
</p> 1. two</p
<p> ><p>This is not a list:
This is not a list: 1987. one ciao 1987. one
</p> ciao</p
</div> ></div
>

View file

@ -238,69 +238,57 @@ sit amet, consectetuer adipiscing elit.</p></li>
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet viverra nec, fringilla in, laoreet vitae, risus.</li
vitae, risus. >
</li> <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
<li> Suspendisse id sem consectetuer libero luctus adipiscing.</li
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem >
consectetuer libero luctus adipiscing. <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
</li> Suspendisse id sem consectetuer libero luctus adipiscing.
<li> <ul>
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
consectetuer libero luctus adipiscing. Suspendisse id sem consectetuer libero luctus adipiscing.</li
<ul> >
<li> <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id Suspendisse id sem consectetuer libero luctus adipiscing.</li
sem consectetuer libero luctus adipiscing. >
</li> </ul
<li> ></li
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id >
sem consectetuer libero luctus adipiscing. </ul
</li> ><p>Ancora</p
</ul> ><ul>
</li> <li
</ul> ><p>This is a list item with two paragraphs. Lorem ipsum dolor
<p> sit amet, consectetuer adipiscing elit. Aliquam hendrerit
Ancora mi posuere lectus.</p
</p> >
<ul> <p>ATTENZIONE!</p
<li> ></li
<p> >
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, <li
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. ><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p
</p> ></li
<p> >
ATTENZIONE! </ul
</p> ><p>Ancora</p
</li> ><ul>
<li> <li
<p> ><p>This is a list item with two paragraphs.</p
Suspendisse id sem consectetuer libero luctus adipiscing. >
</p> <p>This is the second paragraph in the list item. You're
</li> only required to indent the first line. Lorem ipsum dolor
</ul> sit amet, consectetuer adipiscing elit.</p
<p> ></li
Ancora >
</p> <li
<ul> ><p>Another item in the same list.</p
<li> ></li
<p> >
This is a list item with two paragraphs. </ul
</p> ></div
<p> >
This is the second paragraph in the list item. You're only required to
indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing
elit.
</p>
</li>
<li>
<p>
Another item in the same list.
</p>
</li>
</ul>
</div>

View file

@ -28,10 +28,10 @@ md_el(:document,[md_par(["- \316\255\316\275\316\261"])],{},[])
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li>ένα</li
ένα >
</li> </ul
</ul> ></div
</div> >

View file

@ -51,4 +51,5 @@ md_el(:document,[],{},[])
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div/> <div
/>

View file

@ -76,23 +76,21 @@ CiaoTab * Tab * Tab
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Ciao</p
Ciao ><ul>
</p> <li>Tab
<ul> <ul>
<li> <li>Tab
Tab <ul>
<ul> <li>Tab</li
<li> >
Tab </ul
<ul> ></li
<li> >
Tab </ul
</li> ></li
</ul> >
</li> </ul
</ul> ></div
</li> >
</ul>
</div>

View file

@ -133,21 +133,19 @@ aa1a2b
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li>a
a <ul>
<ul> <li>a1</li
<li> >
a1 <li>a2</li
</li> >
<li> </ul
a2 ></li
</li> >
</ul> <li>b</li
</li> >
<li> </ul
b ></div
</li> >
</ul>
</div>

View file

@ -80,19 +80,15 @@ Here is a paragraph.* Item 1 * Item 2 * Item 3
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Here is a paragraph.</p
Here is a paragraph. ><ul>
</p> <li>Item 1</li
<ul> >
<li> <li>Item 2</li
Item 1 >
</li> <li>Item 3</li
<li> >
Item 2 </ul
</li> ></div
<li> >
Item 3
</li>
</ul>
</div>

View file

@ -82,24 +82,21 @@ DuetretretreDue
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ul> ><ul>
<li> <li>Due
Due <ol>
<ol> <li>tre</li
<li> >
tre <li>tre</li
</li> >
<li> <li>tre</li
tre >
</li> </ol
<li> ></li
tre >
</li> <li>Due</li
</ol> >
</li> </ul
<li> ></div
Due >
</li>
</ul>
</div>

View file

@ -265,85 +265,45 @@ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagra
<p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p> <p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph, list with no space:
Paragraph, list with no space: * ciao * ciao</p
</p> ><p>Paragraph, list with 1 space:
<p> * ciao</p
Paragraph, list with 1 space: * ciao ><p>Paragraph, list with 3 space:
</p> * ciao</p
<p> ><p>Paragraph, list with 4 spaces:
Paragraph, list with 3 space: * ciao * ciao</p
</p> ><p>Paragraph, list with 1 tab:
<p> * ciao</p
Paragraph, list with 4 spaces: * ciao ><p>Paragraph (1 space after), list with no space:
</p> * ciao</p
<p> ><p>Paragraph (2 spaces after), list with no space: <br
Paragraph, list with 1 tab: * ciao />
</p> * ciao</p
<p> ><p>Paragraph (3 spaces after), list with no space: <br
Paragraph (1 space after), list with no space: * ciao />
</p> * ciao</p
<p> ><p>Paragraph with block quote:</p
Paragraph (2 spaces after), list with no space: ><blockquote>
<br/> <p>Quoted</p
* ciao >
</p> </blockquote
<p> ><p>Paragraph with header:</p
Paragraph (3 spaces after), list with no space: ><h3>header</h3
<br/> ><p>Paragraph with header on two lines:</p
* ciao ><h2>header</h2
</p> ><p>Paragraph with html after</p
<p> ><div
Paragraph with block quote: /><p>Paragraph with html after, indented:
</p> <em>Emphasis</em
<blockquote> ></p
<p> ><p>Paragraph with html after, indented: <em>Emphasis</em
Quoted ><em>tralla</em
</p> ><em>Emph</em
</blockquote> ></p
<p> ><p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em
Paragraph with header: > Emph</em
</p> ></p
<h3> ></div
header >
</h3>
<p>
Paragraph with header on two lines:
</p>
<h2>
header
</h2>
<p>
Paragraph with html after
</p>
<div/>
<p>
Paragraph with html after, indented:
<em>
Emphasis
</em>
</p>
<p>
Paragraph with html after, indented:
<em>
Emphasis
</em>
<em>
tralla
</em>
<em>
Emph
</em>
</p>
<p>
Paragraph with html after, indented:
<em>
Emphasis
<em>
tralla
</em>
Emph
</em>
</p>
</div>

View file

@ -321,93 +321,78 @@ sit amet, consectetuer adipiscing elit.</p></li>
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<ol> ><ol>
<li> <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet viverra nec, fringilla in, laoreet vitae, risus.
vitae, risus. <ol>
<ol> <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
<li> Suspendisse id sem consectetuer libero luctus adipiscing.</li
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id >
sem consectetuer libero luctus adipiscing. </ol
</li> ></li
</ol> >
</li> <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
<li> Suspendisse id sem consectetuer libero luctus adipiscing.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem <ol>
consectetuer libero luctus adipiscing. <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
<ol> Suspendisse id sem consectetuer libero luctus adipiscing.</li
<li> >
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id <li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
sem consectetuer libero luctus adipiscing. Suspendisse id sem consectetuer libero luctus adipiscing.</li
</li> >
<li> </ol
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id ></li
sem consectetuer libero luctus adipiscing. >
</li> </ol
</ol> ><p>Ancora</p
</li> ><ol>
</ol> <li
<p> ><p>This is a list item with two paragraphs. Lorem ipsum dolor
Ancora sit amet, consectetuer adipiscing elit. Aliquam hendrerit
</p> mi posuere lectus.</p
<ol> >
<li> <p>ATTENZIONE!</p
<p> >
This is a list item with two paragraphs. Lorem ipsum dolor sit amet, <ul>
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. <li>Uno</li
</p> >
<p> <li>Due
ATTENZIONE! <ol>
</p> <li>tre</li
<ul> >
<li> <li>tre</li
Uno >
</li> <li>tre</li
<li> >
Due </ol
<ol> ></li
<li> >
tre <li>Due</li
</li> >
<li> </ul
tre ></li
</li> >
<li> <li
tre ><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p
</li> ></li
</ol> >
</li> </ol
<li> ><p>Ancora</p
Due ><ul>
</li> <li
</ul> ><p>This is a list item with two paragraphs.</p
</li> >
<li> <p>This is the second paragraph in the list item. You're
<p> only required to indent the first line. Lorem ipsum dolor
Suspendisse id sem consectetuer libero luctus adipiscing. sit amet, consectetuer adipiscing elit.</p
</p> ></li
</li> >
</ol> <li
<p> ><p>Another item in the same list.</p
Ancora ></li
</p> >
<ul> </ul
<li> ></div
<p> >
This is a list item with two paragraphs.
</p>
<p>
This is the second paragraph in the list item. You're only required to
indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing
elit.
</p>
</li>
<li>
<p>
Another item in the same list.
</p>
</li>
</ul>
</div>

View file

@ -26,9 +26,9 @@ md_el(:document,[md_html("<br />")],{},[])
<p><br/>123</p> <p><br/>123</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<br/> ><br
123 />123</p
</p> ></div
</div> >

View file

@ -54,58 +54,25 @@ $$ x = y $$$$ x$$ x = y $$$$ x = y $$
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math> <p>$$ x = y $$</p>
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math> <p>$$ x
= y $$</p>
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math> <p>$$
x = y $$</p>
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math> <p>$$ x = y
$$</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'> ><p>$$ x = y $$</p
<mi> ><p>$$ x
x = y $$</p
</mi> ><p>$$
<mo> x = y $$</p
= ><p>$$ x = y
</mo> $$</p
<mi> ></div
y >
</mi>
</math>
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mi>
x
</mi>
<mo>
=
</mo>
<mi>
y
</mi>
</math>
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mi>
x
</mi>
<mo>
=
</mo>
<mi>
y
</mi>
</math>
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mi>
x
</mi>
<mo>
=
</mo>
<mi>
y
</mi>
</math>
</div>

View file

@ -8,9 +8,9 @@
<p>Here are some formulas:</p> <p>Here are some formulas:</p>
<ul> <ul>
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math></span></li> <li><span class='maruku-inline'><code class='maruku-mathml'>\alpha</code></span></li>
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>&ne;</mo><msup><mi>z</mi> <mi>n</mi></msup></math></span></li> <li><span class='maruku-inline'><code class='maruku-mathml'>x^{n}+y^{n} \neq z^{n}</code></span></li>
</ul> </ul>
<p>That&#8217;s it, nothing else is supported.</p> <p>That&#8217;s it, nothing else is supported.</p>

View file

@ -48,104 +48,29 @@ Here are some formulas:Thats it, nothing else is supported.
OK!
Failed tests: [:to_html]
*** Output of inspect ***
md_el(:document,[
md_par(["Here are some formulas:"]),
md_el(:ul,[
md_el(:li_span,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \\neq z^{n}"},[])],{:want_my_paragraph=>false},[])
],{},[]),
md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."])
],{},[])
*** Output of to_html ***
-----| WARNING | -----
<p>Here are some formulas:</p>
<ul>
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math></span></li>
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>&ne;</mo><msup><mi>z</mi> <mi>n</mi></msup></math></span></li>
</ul>
<p>That&#8217;s it, nothing else is supported.</p>
*** Output of to_latex ***
Here are some formulas:
\begin{itemize}%
\item $\alpha$
\item $x^{n}+y^{n} \neq z^{n}$
\end{itemize}
That'{}s it, nothing else is supported.
*** Output of to_md ***
Here are some formulas:
--
That s it, nothing else is supported.
*** Output of to_s ***
Here are some formulas:Thats it, nothing else is supported.
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<p>Here are some formulas:</p> <p>Here are some formulas:</p>
<ul> <ul>
<li><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>&alpha;</mi></math></li> <li>$\alpha$</li>
<li><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>&ne;</mo><msup><mi>z</mi> <mi>n</mi></msup></math></li> <li>$x^{n}+y^{n} \neq z^{n}$</li>
</ul> </ul>
<p>That's it, nothing else is supported.</p> <p>That's it, nothing else is supported.</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Here are some formulas:</p
Here are some formulas: ><ul>
</p> <li>$\alpha$</li
<ul> >
<li> <li>$x^{n}+y^{n} \neq z^{n}$</li
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'> >
<mi> </ul
&alpha; ><p>That's it, nothing else is supported.</p
</mi> ></div
</math> >
</li>
<li>
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
<msup>
<mi>
x
</mi>
<mi>
n
</mi>
</msup>
<mo>
+
</mo>
<msup>
<mi>
y
</mi>
<mi>
n
</mi>
</msup>
<mo>
&ne;
</mo>
<msup>
<mi>
z
</mi>
<mi>
n
</mi>
</msup>
</math>
</li>
</ul>
<p>
That's it, nothing else is supported.
</p>
</div>

View file

@ -4,9 +4,14 @@
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> "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'> <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></title></head> <head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body><div class='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math><div class='maruku-eq-tex'><code style='display: none'> \alpha <body><div class='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><code class='maruku-mathml'> \alpha
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math><div class='maruku-eq-tex'><code style='display: none'> \alpha </code><div class='maruku-eq-tex'><code style='display: none'> \alpha
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&beta;</mi></math><div class='maruku-eq-tex'><code style='display: none'> \beta </code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \alpha
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&gamma;</mi></math><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div></body></html>
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \beta
</code><div class='maruku-eq-tex'><code style='display: none'> \beta
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \gamma </code><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div></body></html>

View file

@ -52,12 +52,50 @@ md_el(:document,[
OK!
Failed tests: [:to_html]
*** Output of inspect ***
md_el(:document,[
md_el(:equation,[],{:label=>"eq1",:math=>"\t\\alpha\n\n",:num=>1},[]),
md_el(:equation,[],{:label=>nil,:math=>"\t\\alpha\n\n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" \\beta\n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" \\gamma ",:num=>nil},[])
],{},[])
*** Output of to_html ***
-----| WARNING | -----
<div class='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><code class='maruku-mathml'> \alpha
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \alpha
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \beta
</code><div class='maruku-eq-tex'><code style='display: none'> \beta
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \gamma </code><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div>
*** Output of to_latex ***
\begin{equation}
\alpha
\label{eq1}\end{equation}
\begin{displaymath}
\alpha
\end{displaymath}
\begin{displaymath}
\beta
\end{displaymath}
\begin{displaymath}
\gamma
\end{displaymath}
*** Output of to_md ***
*** Output of to_s ***
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>&alpha;</mi></math> <p>[
\alpha
]</p>
<p>\begin{equation} <p>\begin{equation}
\alpha \alpha
@ -69,19 +107,15 @@ md_el(:document,[
<p>\begin{equation} \gamma \end{equation}</p> <p>\begin{equation} \gamma \end{equation}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'> ><p>[
<mi> \alpha
&alpha; ]</p
</mi> ><p>\begin{equation}
</math> \alpha
<p> \end{equation}</p
\begin{equation} \alpha \end{equation} ><p>\begin{equation} \beta
</p> \end{equation}</p
<p> ><p>\begin{equation} \gamma \end{equation}</p
\begin{equation} \beta \end{equation} ></div
</p> >
<p>
\begin{equation} \gamma \end{equation}
</p>
</div>

View file

@ -32,24 +32,13 @@ This is not $math$.[ \alpha ]
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<p>This is not <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>math</mi></math>.</p> <p>This is not $math$.</p>
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>&alpha;</mi></math> <p>[ \alpha ]</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This is not $math$.</p
This is not ><p>[ \alpha ]</p
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'> ></div
<mi> >
math
</mi>
</math>
.
</p>
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mi>
&alpha;
</mi>
</math>
</div>

View file

@ -27,49 +27,27 @@ md_el(:document,[
OK!
Failed tests: [:to_html]
*** Output of inspect ***
md_el(:document,[
md_html("<table markdown='1'>\n\t$\\alpha$\n\t<thead>\n\t\t<td>$\\beta$</td>\n\t</thead>\n</table>")
],{},[])
*** Output of to_html ***
-----| WARNING | -----
<table><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&alpha;</mi></math></span><thead>
<td><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>&beta;</mi></math></span></td>
</thead>
</table>
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** Output of Markdown.pl *** *** Output of Markdown.pl ***
<table markdown='1'> <table markdown='1'>
<math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>&alpha;</mi></math> $\alpha$
<thead> <thead>
<td><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>&beta;</mi></math></td> <td>$\beta$</td>
</thead> </thead>
</table> </table>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<table markdown='1'> ><table markdown='1'>
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'> $\alpha$
<mi> <thead>
&alpha; <td>$\beta$</td
</mi> >
</math> </thead
<thead> >
<td> </table
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'> ></div
<mi> >
&beta;
</mi>
</math>
</td>
</thead>
</table>
</div>

View file

@ -57,12 +57,11 @@ SymbolMeaningcomments The firstI like it. The firstI like it.
<p>{:r: scope='row'}</p> <p>{:r: scope='row'}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Symbol | Meaning | comments
Symbol | Meaning | comments ------------|---------|--------- {:r} &alpha; | ------------|---------|---------
The first | I like it. {:r} &aleph; | The first | I like it. {:r} &alpha; | The first | I like it.
</p> {:r} &aleph; | The first | I like it.</p
<p> ><p>{:r: scope='row'}</p
{:r: scope='row'} ></div
</p> >
</div>

View file

@ -612,326 +612,193 @@ the alternative is PowerPoint with the <a href="http://texpoint.necula.org/">Tex
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Subject: Software not painful to use
Subject: Software not painful to use Subject_short: painless software Topic: Subject_short: painless software
/misc/coolsw Archive: no Date: Nov 20 2006 Order: -9.5 inMenu: true Topic: /misc/coolsw
</p> Archive: no
<h3> Date: Nov 20 2006
General Order: -9.5
</h3> inMenu: true</p
<ul> ><h3>General</h3
<li> ><ul>
<em> <li
Operating System ><em>Operating System</em
</em> > : <a href='http://www.apple.com/getamac/'>Mac OS X</a
: >: heaven, after the purgatory of Linux
<a href='http://www.apple.com/getamac/'> and the hell of Windows.</li
Mac OS X >
</a> <li
: heaven, after the purgatory of Linux and the hell of Windows. ><em>Browser</em
</li> >: <a href='http://getfirefox.com/'>Firefox</a
<li> >. On a Mac, <a href='http://www.caminobrowser.org/'>Camino</a
<em> >.</li
Browser >
</em> <li
: ><em>Email</em
<a href='http://getfirefox.com/'> >: <a href='http://gmail.com/'>GMail</a
Firefox >, "search, don't sort" really works.</li
</a> >
. On a Mac, <li
<a href='http://www.caminobrowser.org/'> ><em>Text Editor</em
Camino >: <a href='http://www.apple.com/getamac/'>TextMate</a
</a> >, you have to buy it, but it's worth every
. penny. There are rumours that it's been converting (recovering) Emacs
</li> users (addicts). Unfortunately, it's Mac only. An alternative is
<li> <a href='http://www.jedit.org/'>jedit</a
<em> > (GPL, Java).</li
Email >
</em> </ul
: ><h3>Development</h3
<a href='http://gmail.com/'> ><ul>
GMail <li
</a> ><em>Build system</em
, "search, don't sort" really works. >: <a href='http://www.cmake.org/'>cmake</a
</li> >, throw the <a href='http://sources.redhat.com/autobook/'>autotools</a
<li> > away.</li
<em> >
Text Editor <li
</em> ><em>Source code control system</em
: >: ditch CVS for <a href='http://subversion.tigris.org'>subversion</a
<a href='http://www.apple.com/getamac/'> >.</li
TextMate >
</a> <li
, you have to buy it, but it's worth every penny. There are rumours that it's ><em>Project management</em
been converting (recovering) Emacs users (addicts). Unfortunately, it's Mac >: <a href='http://trac.edgewall.org/'>Trac</a
only. An alternative is > tracks everything.</li
<a href='http://www.jedit.org/'> >
jedit <li
</a> ><p
(GPL, Java). ><em>Scripting language</em
</li> >: <a href='http://www.ruby-lang.org/'>Ruby</a
</ul> > is Japanese pragmatism (and has a <a href='http://poignantguide.net/ruby/'>poignant</a
<h3> > guide).
Development Python, you say? Python is too academic and snob:</p
</h3> >
<ul> <p>$ python <br
<li> />
<em> Python 2.4.1 (#1, Jun 4 2005, 00:54:33)
Build system Type "help", "copyright", "credits" or "license" for more information.</p
</em> >
: <blockquote>
<a href='http://www.cmake.org/'> <blockquote>
cmake <blockquote>
</a> <p>exit
, throw the 'Use Ctrl-D (i.e. EOF) to exit.'
<a href='http://sources.redhat.com/autobook/'> quit
autotools 'Use Ctrl-D (i.e. EOF) to exit.'</p
</a> >
away. </blockquote
</li> >
<li> </blockquote
<em> >
Source code control system </blockquote
</em> ></li
: ditch CVS for >
<a href='http://subversion.tigris.org'> <li
subversion ><p
</a> ><em>Java IDE</em
. >: <a href='http://www.borland.com/us/products/jbuilder/index.html'>JBuilder</a
</li> > is great software and has a free version (IMHO better than Eclipse). Java
<li> is not a pain anymore since it gained <a href='http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html'>generics</a
<em> > and got opensourced.</p
Project management ></li
</em> >
: <li
<a href='http://trac.edgewall.org/'> ><em>Mark-up language</em
Trac >: HTML is so 2001, why don't you take at look at <a href='http://en.wikipedia.org/wiki/Markdown'>Markdown</a
</a> >? <a href='data/misc_markdown.png'>Look at the source of this page</a
tracks everything. >.</li
</li> >
<li> <li
<p> ><em>C++ libraries</em
<em> >:
Scripting language <ul>
</em> <li
: ><a href='http://www.trolltech.no/'>QT</a
<a href='http://www.ruby-lang.org/'> > for GUIs.</li
Ruby >
</a> <li
is Japanese pragmatism (and has a ><a href='http://www.gnu.org/software/gsl/'>GSL</a
<a href='http://poignantguide.net/ruby/'> > for math.</li
poignant >
</a> <li
guide). Python, you say? Python is too academic and snob: ><a href='http://www.imagemagick.org/Magick++/'>Magick++</a
</p> > for manipulating images.</li
<p> >
$ python <li
<br/> ><a href='http://cairographics.org/'>Cairo</a
Python 2.4.1 (#1, Jun 4 2005, 00:54:33) Type "help", "copyright", "credits" > for creating PDFs.</li
or "license" for more information. >
</p> <li
<blockquote> ><a href='http://www.boost.org/'>Boost</a
<blockquote> > for just about everything else.</li
<blockquote> >
<p> </ul
exit 'Use Ctrl-D (i.e. EOF) to exit.' quit 'Use Ctrl-D (i.e. EOF) to ></li
exit.' >
</p> </ul
</blockquote> ><h3>Research</h3
</blockquote> ><ul>
</blockquote> <li
</li> ><em>Writing papers</em
<li> >: <a href='http://en.wikipedia.org/wiki/LaTeX'>LaTeX</a
<p> ></li
<em> >
Java IDE <li
</em> ><em>Writing papers &amp; enjoying the process</em
: >: <a href='http://www.lyx.org'>LyX</a
<a href='http://www.borland.com/us/products/jbuilder/index.html'> ></li
JBuilder >
</a> <li
is great software and has a free version (IMHO better than Eclipse). Java ><em>Handsome figures in your papers</em
is not a pain anymore since it gained >: <a href='http://www.xfig.org/'>xfig</a
<a href='http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html'> > or, better, <a href='http://tams-www.informatik.uni-hamburg.de/applets/jfig/'>jfig</a
generics >.</li
</a> >
and got opensourced. <li
</p> ><em>The occasional presentation with many graphical content</em
</li> >:
<li> <a href='http://www.openoffice.org/product/impress.html'>OpenOffice Impress</a
<em> > (using the <a href='http://ooolatex.sourceforge.net/'>OOOlatex plugin</a
Mark-up language >);
</em> the alternative is PowerPoint with the <a href='http://texpoint.necula.org/'>TexPoint</a
: HTML is so 2001, why don't you take at look at > plugin.</li
<a href='http://en.wikipedia.org/wiki/Markdown'> >
Markdown <li
</a> ><em>Managing BibTeX</em
? >: <a href='http://jabref.sourceforge.net/'>jabref</a
<a href='data/misc_markdown.png'> >: multi-platform, for all your bibtex needs.</li
Look at the source of this page >
</a> <li
. ><em>IEEExplore and BibTeX</em
</li> >: convert citations using <a href='http://www.bibconverter.net/ieeexplore/'>BibConverter</a
<li> >.</li
<em> >
C++ libraries </ul
</em> ><h3>Cool websites</h3
: ><ul>
<ul> <li
<li> ><em>Best site in the wwworld</em
<a href='http://www.trolltech.no/'> >: <a href='http://en.wikipedia.org/'>Wikipedia</a
QT ></li
</a> >
for GUIs. <li
</li> ><a href='http://www.mutopiaproject.org/'>Mutopia</a
<li> > for sheet music; <a href='http://www.gutenberg.org/'>the Gutenberg Project</a
<a href='http://www.gnu.org/software/gsl/'> > for books; <a href='http://www.liberliber.it/'>LiberLiber</a
GSL > for books in italian.</li
</a> >
for math. <li
</li> ><em>Blogs</em
<li> >: <a href='http://bloglines.com/'>Bloglines</a
<a href='http://www.imagemagick.org/Magick++/'> ></li
Magick++ >
</a> <li
for manipulating images. ><em>Sharing photos</em
</li> >: <a href='http://www.flickr.com/'>flickr</a
<li> > exposes an API you can use.</li
<a href='http://cairographics.org/'> >
Cairo </ul
</a> ></div
for creating PDFs. >
</li>
<li>
<a href='http://www.boost.org/'>
Boost
</a>
for just about everything else.
</li>
</ul>
</li>
</ul>
<h3>
Research
</h3>
<ul>
<li>
<em>
Writing papers
</em>
:
<a href='http://en.wikipedia.org/wiki/LaTeX'>
LaTeX
</a>
</li>
<li>
<em>
Writing papers &amp; enjoying the process
</em>
:
<a href='http://www.lyx.org'>
LyX
</a>
</li>
<li>
<em>
Handsome figures in your papers
</em>
:
<a href='http://www.xfig.org/'>
xfig
</a>
or, better,
<a href='http://tams-www.informatik.uni-hamburg.de/applets/jfig/'>
jfig
</a>
.
</li>
<li>
<em>
The occasional presentation with many graphical content
</em>
:
<a href='http://www.openoffice.org/product/impress.html'>
OpenOffice Impress
</a>
(using the
<a href='http://ooolatex.sourceforge.net/'>
OOOlatex plugin
</a>
); the alternative is PowerPoint with the
<a href='http://texpoint.necula.org/'>
TexPoint
</a>
plugin.
</li>
<li>
<em>
Managing BibTeX
</em>
:
<a href='http://jabref.sourceforge.net/'>
jabref
</a>
: multi-platform, for all your bibtex needs.
</li>
<li>
<em>
IEEExplore and BibTeX
</em>
: convert citations using
<a href='http://www.bibconverter.net/ieeexplore/'>
BibConverter
</a>
.
</li>
</ul>
<h3>
Cool websites
</h3>
<ul>
<li>
<em>
Best site in the wwworld
</em>
:
<a href='http://en.wikipedia.org/'>
Wikipedia
</a>
</li>
<li>
<a href='http://www.mutopiaproject.org/'>
Mutopia
</a>
for sheet music;
<a href='http://www.gutenberg.org/'>
the Gutenberg Project
</a>
for books;
<a href='http://www.liberliber.it/'>
LiberLiber
</a>
for books in italian.
</li>
<li>
<em>
Blogs
</em>
:
<a href='http://bloglines.com/'>
Bloglines
</a>
</li>
<li>
<em>
Sharing photos
</em>
:
<a href='http://www.flickr.com/'>
flickr
</a>
exposes an API you can use.
</li>
</ul>
</div>

View file

@ -33,15 +33,12 @@ md_el(:document,[md_par([md_code("\\\\")]), md_par([md_code("\\")])],{},[])
<p><code>\</code></p> <p><code>\</code></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<code> ><code>\\</code
\\ ></p
</code> ><p
</p> ><code>\</code
<p> ></p
<code> ></div
\ >
</code>
</p>
</div>

View file

@ -78,23 +78,12 @@ ParagraphheaderParagraphheaderParagraphheader
<h1>header</h1> <h1>header</h1>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph</p
Paragraph ><h3>header</h3
</p> ><p>Paragraph</p
<h3> ><h2>header</h2
header ><p>Paragraph</p
</h3> ><h1>header</h1
<p> ></div
Paragraph >
</p>
<h2>
header
</h2>
<p>
Paragraph
</p>
<h1>
header
</h1>
</div>

View file

@ -28,10 +28,9 @@ md_el(:document,[md_par([md_code("There is a literal backtick (`) here.")])],{},
<p><code>There is a literal backtick (`) here.</code></p> <p><code>There is a literal backtick (`) here.</code></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<code> ><code>There is a literal backtick (`) here.</code
There is a literal backtick (`) here. ></p
</code> ></div
</p> >
</div>

View file

@ -203,53 +203,33 @@ Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagra
<h2>header</h2> <h2>header</h2>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph, list with no space:
Paragraph, list with no space: * ciao * ciao</p
</p> ><p>Paragraph, list with 1 space:
<p> * ciao</p
Paragraph, list with 1 space: * ciao ><p>Paragraph, list with 3 space:
</p> * ciao</p
<p> ><p>Paragraph, list with 4 spaces:
Paragraph, list with 3 space: * ciao * ciao</p
</p> ><p>Paragraph, list with 1 tab:
<p> * ciao</p
Paragraph, list with 4 spaces: * ciao ><p>Paragraph (1 space after), list with no space:
</p> * ciao</p
<p> ><p>Paragraph (2 spaces after), list with no space: <br
Paragraph, list with 1 tab: * ciao />
</p> * ciao</p
<p> ><p>Paragraph (3 spaces after), list with no space: <br
Paragraph (1 space after), list with no space: * ciao />
</p> * ciao</p
<p> ><p>Paragraph with block quote:</p
Paragraph (2 spaces after), list with no space: ><blockquote>
<br/> <p>Quoted</p
* ciao >
</p> </blockquote
<p> ><p>Paragraph with header:</p
Paragraph (3 spaces after), list with no space: ><h3>header</h3
<br/> ><p>Paragraph with header on two lines:</p
* ciao ><h2>header</h2
</p> ></div
<p> >
Paragraph with block quote:
</p>
<blockquote>
<p>
Quoted
</p>
</blockquote>
<p>
Paragraph with header:
</p>
<h3>
header
</h3>
<p>
Paragraph with header on two lines:
</p>
<h2>
header
</h2>
</div>

View file

@ -61,19 +61,15 @@ This is a list:onetwothree
</ol> </ol>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>This is a list:</p
This is a list: ><ol>
</p> <li>one</li
<ol> >
<li> <li>two</li
one >
</li> <li>three</li
<li> >
two </ol
</li> ></div
<li> >
three
</li>
</ol>
</div>

View file

@ -25,8 +25,7 @@ One line
<p>One line</p> <p>One line</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>One line</p
One line ></div
</p> >
</div>

View file

@ -26,8 +26,7 @@ Paragraph
<p>Paragraph</p> <p>Paragraph</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph</p
Paragraph ></div
</p> >
</div>

View file

@ -54,8 +54,9 @@ Paragraph
Paragraph</p> Paragraph</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph
Paragraph Paragraph Paragraph Paragraph
</p> Paragraph</p
</div> ></div
>

View file

@ -36,11 +36,8 @@ Paragraph1Paragraph2
<p>Paragraph2</p> <p>Paragraph2</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph1</p
Paragraph1 ><p>Paragraph2</p
</p> ></div
<p> >
Paragraph2
</p>
</div>

View file

@ -63,16 +63,13 @@ Paragraph Br-> <br />
Paragraph 5</p> Paragraph 5</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Paragraph 1</p
Paragraph 1 ><p>Paragraph 2</p
</p> ><p>Paragraph 3
<p> Paragraph 4
Paragraph 2 Paragraph Br-> <br
</p> />
<p> Paragraph 5</p
Paragraph 3 Paragraph 4 Paragraph Br-> ></div
<br/> >
Paragraph 5
</p>
</div>

View file

@ -25,8 +25,7 @@ Search on Google imagesGoOgle search ]
<p>Search on [Google images][ GoOgle search ]</p> <p>Search on [Google images][ GoOgle search ]</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Search on [Google images][ GoOgle search ]</p
Search on [Google images][ GoOgle search ] ></div
</p> >
</div>

View file

@ -85,36 +85,16 @@ inspiration for Markdown's syntax is the format of plain text email.</p>
<p>To this end, Markdown's syntax is comprised entirely of punctuation</p> <p>To this end, Markdown's syntax is comprised entirely of punctuation</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>filters -- including <a href='http://docutils.sourceforge.net/mirror/setext.html'>Setext</a
filters -- including >, <a href='http://www.aaronsw.com/2002/atx/'>atx</a
<a href='http://docutils.sourceforge.net/mirror/setext.html'> >, <a href='http://textism.com/tools/textile/'>Textile</a
Setext >, <a href='http://docutils.sourceforge.net/rst.html'>reStructuredText</a
</a> >,
, <a href='http://www.triptico.com/software/grutatxt.html'>Grutatext</a
<a href='http://www.aaronsw.com/2002/atx/'> >, and <a href='http://ettext.taint.org/doc/'>EtText</a
atx > -- the single biggest source of
</a> inspiration for Markdown's syntax is the format of plain text email.</p
, ><p>To this end, Markdown's syntax is comprised entirely of punctuation</p
<a href='http://textism.com/tools/textile/'> ></div
Textile >
</a>
,
<a href='http://docutils.sourceforge.net/rst.html'>
reStructuredText
</a>
,
<a href='http://www.triptico.com/software/grutatxt.html'>
Grutatext
</a>
, and
<a href='http://ettext.taint.org/doc/'>
EtText
</a>
-- the single biggest source of inspiration for Markdown's syntax is the
format of plain text email.
</p>
<p>
To this end, Markdown's syntax is comprised entirely of punctuation
</p>
</div>

View file

@ -25,4 +25,5 @@ md_el(:document,[md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil})]
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div/> <div
/>

View file

@ -149,16 +149,16 @@ Line:
Position: Position:
Last 80 unconsumed characters: Last 80 unconsumed characters:
<pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</> <pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</>
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull' /sw/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse' /sw/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build' /sw/lib/ruby/1.8/rexml/document.rb:190:in `build'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize' /sw/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
bin/marutest:200:in `new' bin/marutest:200:in `new'
bin/marutest:200:in `run_test' bin/marutest:200:in `run_test'
bin/marutest:275:in `marutest' bin/marutest:274:in `marutest'
bin/marutest:272:in `each' bin/marutest:271:in `each'
bin/marutest:272:in `marutest' bin/marutest:271:in `marutest'
bin/marutest:347 bin/marutest:346
... ...
Missing end tag for 'here' (got "p") Missing end tag for 'here' (got "p")
Line: Line:

View file

@ -63,8 +63,38 @@ This is ruby code:This is ruby code:
<pre><code>require 'maruku' <pre><code>require 'maruku'
puts Maruku.new(&lt;math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'&gt;&lt;mi&gt;stdin&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;mo&gt;.&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;to&lt;/mi&gt; &lt;mi&gt;html&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;This&lt;/mi&gt;&lt;mi&gt;is&lt;/mi&gt;&lt;mi&gt;ruby&lt;/mi&gt;&lt;mi&gt;code&lt;/mi&gt;&lt;mo&gt;:&lt;/mo&gt;&lt;mi&gt;require&lt;/mi&gt;&lt;mo&gt;&amp;prime;&lt;/mo&gt;&lt;mi&gt;maruku&lt;/mi&gt;&lt;mo&gt;&amp;prime;&lt;/mo&gt;&lt;mrow&gt;&lt;mo&gt;:&lt;/mo&gt;&lt;mi&gt;lang&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;ruby&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;html&lt;/mi&gt; &lt;mi&gt;use&lt;/mi&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mo&gt;&lt;/mo&gt;&lt;mi&gt;syntax&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;mi&gt;puts&lt;/mi&gt;&lt;mi&gt;Maruku&lt;/mi&gt;&lt;mo&gt;.&lt;/mo&gt;&lt;mi&gt;new&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;/math&gt;stdin).to_html puts Maruku.new($stdin).to_html
</code></pre>
<p>This is ruby code:</p>
<pre><code>require 'maruku'
</code></pre>
<p>{: lang=ruby html<em>use</em>syntax}</p>
<pre><code>puts Maruku.new($stdin).to_html
</code></pre> </code></pre>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
Error: #<TypeError: no implicit conversion from nil to integer> <div
><p>This is ruby code:</p
><pre
><code>require 'maruku'
puts Maruku.new($stdin).to_html
</code
></pre
><p>This is ruby code:</p
><pre
><code>require 'maruku'
</code
></pre
><p>{: lang=ruby html<em>use</em
>syntax}</p
><pre
><code>puts Maruku.new($stdin).to_html
</code
></pre
></div
>

View file

@ -49,13 +49,11 @@ hh c1c2
<p>{:t: scope="row"}</p> <p>{:t: scope="row"}</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>h | h
h | h ----------|-- {:t} c1 | c2 {: summary="Table summary" .class1 ----------|--
style="color:red" border=3 width="50%" frame=lhs rules=cols cellspacing=2em {:t} c1 | c2
cellpadding=4px} {: summary="Table summary" .class1 style="color:red" border=3 width="50%" frame=lhs rules=cols cellspacing=2em cellpadding=4px}</p
</p> ><p>{:t: scope="row"}</p
<p> ></div
{:t: scope="row"} >
</p>
</div>

View file

@ -29,8 +29,7 @@ md_el(:document,[md_el(:code,[],{:raw_code=>" $ python "},[])],{},[]
<p>$ python </p> <p>$ python </p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>$ python </p
$ python ></div
</p> >
</div>

View file

@ -85,25 +85,18 @@ Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet</li>
</ul> </ul>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p>Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Break: <br
Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem />
ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. </p
dolor amet. Break: ><ul>
<br/> <li>Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet
Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem Lorem ipsum Break: <br
ipsum dolor amet. />
</p> Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet</li
<ul> >
<li> <li>Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet</li
Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem >
ipsum dolor amet Lorem ipsum Break: </ul
<br/> ></div
Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet >
</li>
<li>
Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem
ipsum dolor amet
</li>
</ul>
</div>

View file

@ -51,16 +51,20 @@ width="600px" height="400px">
</svg:svg></p> </svg:svg></p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<svg:svg/> ><svg:svg
</p> /></p
<p> ><p
<svg:svg height='400px' width='600px'> ><svg:svg height='400px' width='600px'>
<svg:g id='group'> <svg:g id='group'>
<svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;'/> <svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;'
<svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;'/> />
</svg:g> <svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;'
</svg:svg> />
</p> </svg:g
</div> >
</svg:svg
></p
></div
>

View file

@ -31,8 +31,8 @@ md_el(:document,[md_html("<!--\n<\n-->")],{},[])
--> -->
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<!-- > <!--
< <
--> --></div
</div> >

View file

@ -41,13 +41,14 @@ md_el(:document,[
</table> </table>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<table markdown='1'> ><table markdown='1'>
Blah Blah
<thead> <thead>
<td> <td>*em*</td
*em* >
</td> </thead
</thead> >
</table> </table
</div> ></div
>

View file

@ -69,23 +69,10 @@ Targets Inside: last
<p>Inside: <?mrk puts "Inside: Hello" ?> last</p> <p>Inside: <?mrk puts "Inside: Hello" ?> last</p>
*** Output of Markdown.pl (parsed) *** *** Output of Markdown.pl (parsed) ***
<div> <div
<p> ><p
<? noTarget?> > <? noTarget?> <?php ?> <?xml ?> <?mrk ?></p
<?php ?> ><p>Targets <? noTarget?> <?php ?> <?xml ?> <?mrk ?></p
<?xml ?> ><p>Inside: <?mrk puts "Inside: Hello"?> last</p
<?mrk ?> ></div
</p> >
<p>
Targets
<? noTarget?>
<?php ?>
<?xml ?>
<?mrk ?>
</p>
<p>
Inside:
<?mrk puts "Inside: Hello"?>
last
</p>
</div>