instiki/vendor/plugins/maruku/tests/unittest/links.md
Jacques Distler a84648cff1 Fix Maruku Escaping Bug
Sync with latest Maruku (now on github).
lib/maruku/ext/math/mathml_engines/none.rb should
HTML-escape the TeX source code. No it does.
2009-05-13 01:27:39 -05:00

5 KiB

Write a comment abouth the test here. *** Parameters: *** {:on_error=>:warning} *** Markdown input: ***

Search on Google

Search on Google []

Search on Google google

Search on Google Google

Search on Google images

Inline: Google images

Inline with title: Google images

Inline with title: Google images

Search on http://www.gogole.com or http://Here.com or ask mailto:bill@google.com or you might ask bill@google.com.

If all else fails, ask Google

And now [reference-style link ID with spaces] Google Images

*** Output of inspect *** md_el(:document,[ md_par(["Search on ", md_link(["Google"],"google")]), md_par(["Search on ", md_link(["Google"],"google")]), md_par(["Search on ", md_link(["Google"],"google")]), md_par(["Search on ", md_link(["Google"],"google")]), md_par(["Search on ", md_link(["Google images"],"google_images")]), md_par(["Inline: ", md_im_link(["Google images"], "http://google.com", nil)]), md_par([ "Inline with title: ", md_im_link(["Google images"], "http://google.com", "Title") ]), md_par([ "Inline with title: ", md_im_link(["Google images"], "http://google.com", "Title") ]), md_par([ "Search on ", md_url("http://www.gogole.com"), " or ", md_url("http://Here.com"), " or ask ", md_email("bill@google.com"), " or you might ask bill@google.com." ]), md_par([ "If all else fails, ask ", md_im_link(["Google"], "http://www.google.com", nil) ]), md_par([ "And now ", md_link(["reference-style link ID with spaces"],"google_images") ]), md_ref_def("google", "http://www.google.com", {:title=>nil}), md_ref_def("google2", "http://www.google.com", {:title=>"Single quotes"}), md_ref_def("google3", "http://www.google.com", {:title=>"Double quotes"}), md_ref_def("google4", "http://www.google.com", {:title=>"Parenthesis"}), md_ref_def("google_search", "http://www.google.com", {:title=>"Google search"}), md_ref_def("google_images", "http://images.google.com", {:title=>"Google images"}) ],{},[]) *** Output of to_html ***

Search on Google

Search on Google

Search on Google

Search on Google

Search on Google images

Inline: Google images

Inline with title: Google images

Inline with title: Google images

Search on http://www.gogole.com or http://Here.com or ask bill@google.com or you might ask bill@google.com.

If all else fails, ask Google

And now reference-style link ID with spaces

*** Output of to_latex *** Search on \href{http://www.google.com}{Google}

Search on \href{http://www.google.com}{Google}

Search on \href{http://www.google.com}{Google}

Search on \href{http://www.google.com}{Google}

Search on \href{http://images.google.com}{Google images}

Inline: \href{http://google.com}{Google images}

Inline with title: \href{http://google.com}{Google images}

Inline with title: \href{http://google.com}{Google images}

Search on \href{http://www.gogole.com}{http\char58\char47\char47www\char46gogole\char46com} or \href{http://Here.com}{http\char58\char47\char47Here\char46com} or ask \href{mailto:bill@google.com}{bill\char64google\char46com} or you might ask bill@google.com.

If all else fails, ask \href{http://www.google.com}{Google}

And now \href{http://images.google.com}{reference-style link ID with spaces} *** Output of to_md *** Search on Google

Search on Google

Search on Google

Search on Google

Search on Google images

Inline: Google images

Inline with title: Google images

Inline with title: Google images

Search on or or ask or you might ask bill@google.com.

If all else fails, ask Google

And now reference-style link ID with spaces *** Output of to_s *** Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask GoogleAnd now reference-style link ID with spaces *** EOF ***

OK!

*** Output of Markdown.pl *** (not used anymore) *** Output of Markdown.pl (parsed) *** (not used anymore)