maruku-0.7.1/ 0000755 0000041 0000041 00000000000 12271517176 013064 5 ustar www-data www-data maruku-0.7.1/data/ 0000755 0000041 0000041 00000000000 12271517176 013775 5 ustar www-data www-data maruku-0.7.1/data/entities.xml 0000644 0000041 0000041 00000032355 12271517176 016353 0 ustar www-data www-data
I’m a big fan of typography in general. If you check out my homepage or my contact elliottcable page, and you’re using Safari/WebKit or Opera/Kestrel, you’ll notice the typefaces (fonts, as colloquialized) are very non-standard. (As of this writing, I’m using Museo and Diavlo1 heavily on both.)
The internet has not be a friendly place for typohiles like myself, up to this point, at least. One might even say it was a frightful, mentally scarring environment for those akin to yours truly. We’ve been restricted to reading page after page after page on day after day after day for year after year after year abominations of markup and design enslaved by the horrible overlords we know as Lucida, Verdana, Arial, Helvetica, Geneva, Georgia, Courier, and… dare I invoke ye, thou my terrible overlord? Times New Roman.
Wherefore art thou, my glorious Archer? And thee as well, my beautiful Garamond? The technical restrictions of that horrible monster we know as the Web Browser hath forced us all too long to use those most banal, those most common, and those most abused, out of all of the typefaces of the world.
All hyperbole aside, I’m extremely happy to see the advent of a standard @font-face
declaration in CSS. Internet Explorer first implemented a crutched, basic version of this way back in version 4, but nothing ever really came of it - their decision to create the proprietary .EOT2 format to appease overly restrictive type foundries’ worries about intellectual property (aka. the cold, hard dominatrix that we know only as Ms. Profit) truly and completely killed that initial attempt at bringing astute typography and it’s advocates to the web. This new run at @font-face
by an established, trusted, and open group (the W3C itself, responsible for helping to make much of what we use as designers on the web standard and cross-system compatible) has a much better chance, in my humble opinion - and I am quite looking forward to the consequences if it succeeds.
Now, onwards to the topic of my post as declared in the header (yes, I know, a slow start - but it’s an interesting topic with an interesting history!). WebKit, the open source rendering engine behind the wonderfulness that is Safari, and how it handles the ‘new’ @font-face
declaration. No, it’s not really ‘new’, but yes, it feels like it is.
To put it simply, and to be very blunt, it’s broken.
The CSS spec section for @font-face
is very specific - typefaces are to be selected based on a wide array of criteria placed in the @font-face
declaration block itself. Various textual CSS attributes may be defined within the @font-face
declaration, and then they will be checked when the typeface is referred to later in the CSS. For instance, if I have two @font-face
declarations for the Diavlo family - one for regular text, and one for a heavier weighted version of the typeface - then I later utilize Diavlo in a font-family:
attribute, it should refer to the basic Diavlo font defined in the first @font-face
. However, if I were to do the same, but also specify a heavy font-weight:
, then it should use the heavier version of Diavlo. To place this example in code:
@font-face {
font-family: 'Diavlo';
src: url(./Diavlo/Diavlo_Book.otf) format("opentype");
}
@font-face {
font-family: 'Diavlo';
font-weight: 900;
src: url(./Diavlo/Diavlo_Black.otf) format("opentype");
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Diavlo';
font-weight: 900;
}
div#content {
font-family: 'Diavlo';
}
As you can see, my headings should use the typeface defined in Diavlo_Black.otf
, while my body content should use Diavlo_Book.otf
. However, in WebKit, this doesn’t work - it completely ignores any attribute except font-family:
and src:
in a @font-face
declaration! Completely ignores them! Not only that - not only that - it disregards all but the last @font-face
for a given font-family:
attribute string!
The implication here is that, to make @font-face
work as it is currently implemented in WebKit (and thus, Safari 3.1), I have to declare completely imaginary, non-existent type families to satisfy WebKit alone. Here’s the method I have used in the places I current implement @font-face
:
@font-face {
font-family: 'Diavlo Book';
src: url(./Diavlo/Diavlo_Book.otf) format("opentype");
}
@font-face {
font-family: 'Diavlo Black';
src: url(./Diavlo/Diavlo_Black.otf) format("opentype");
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Diavlo Black';
}
div#content {
font-family: 'Diavlo Book';
}
Isn’t it horrible? Seriously, my eyes, they bleed. There’s lots of problems with this far beyond the lack of semanticity when it comes to the typeface names… let me see how many ways this breaks the purpose of @font-face
:
You remove a large element our control over the display of the page.
As soon as we begin to use @font-face
in our page, we can no longer make any use of any other textual control attribute - font-weight:
, font-style:
, and font-variant:
are no longer available to us, because they no longer correctly map to technical typeface variant/features.
Also, many default elements are destroyed, unusable, without ‘fixing’ - for instance, <b>
would have no effect in a page styled for WebKit as above; We would have to specify something like b {font-family: 'Diavlo Black';}
- how broken is that? Unless we caught all such default elements and re-styled them to use the bastardized names instead of the correct attributes, lots of basic HTML formatting would be broken. I myself may never use in-document formatting (separation of design and content!), but what about comments forms? Forum posts? Direct HTML-literal quotes?
If we want to use Javascript to modify the display of the content, we can’t simply adjust the mentioned textual control attributes - we have to know and change the entire font-family:
array of strings.
You make us very wet.
And by wet, I mean ‘not DRY’. What if we decide to change one of the bastardized font names? Or use a different font entirely? We have to go through all of our CSS, all of our Javascript, and make sure we update every occurrence of the typeface’s bastardized name.
You remove our user’s user choice, and waste bandwidth.
Since the names refer to families that don’t, in fact, exist, the browser can’t override the declaration with a user’s installed version of the typeface. This means that, regardless of whether the user already has the typeface installed on their own computer, the browser won’t use that - it doesn’t know to use ‘Diavlo’, which the user has installed, because it was told to use ‘Diavlo Black’, which no user in the entire world has installed on their computer.
This whole thing is rather worrying - I’ve heard Opera has @font-face
support, though I haven’t had time to test this myself, so I don’t know if it actually does - or, for that matter, if it does it ‘correctly’, or has the same problems as WebKit. But either way, WebKit is one of the first two implementations to ever attempt to support @font-face
(Microsoft’s unrelated @font-face
declaration notwithstanding) - I really don’t want to see it’s early mistakes carried on to FireFox in a few years, and then Internet Explorer a few decades after that. That will leave us stuck with this broken system forever, as it has been demonstrated time and time again that if nobody else supports an old standard correctly, a newcomer to the standard will not do it correctly either. I for one would really, really, hate that.
In summary… come on, WebKit team, this isn’t like you - you’re always the ones with the closest-to-standard implementation, and the cleanest code, and… hell, overall? Webkit is the most secure/fastest browser available. But this is making me lose my faith in you, guys, please get it right. You’re pioneering a leap into the future when it comes to the Web - this is as important, or more important, than Mosiac’s allowing of images was.
To put it succinctly - don’t fuck this up, y’all.
These are fonts by Jos Buivenga, quite the amazing person. His (free) fonts are, uniquely, released for use on the web in @font-face
declarations - unlike the vast majority of other (even free to download) typefaces, which have ridiculously restricting licenses and terms of use statements. Props, Jos - you’re a pioneer, and deserve recognition as such. ↩
To give Microsoft a little credit, something I rarely do… Yes, I’m aware Microsoft submitted EOT to the W3C as a proposal - the problem isn’t with their attempts to make it non-proprietary, but with the basic concept of making typefaces on the web DRMed. Look what such attempts have done to the music and video industry - simply decimated it. Do we really want to see the same thing happen to our beloved medium as typography moves into the 21st century? ↩
Paragraph
*** Output of to_latex *** Paragraph *** Output of to_md *** Paragraph *** Output of to_s *** Paragraph maruku-0.7.1/spec/block_docs/code.md 0000644 0000041 0000041 00000001461 12271517176 017356 0 ustar www-data www-data Comment *** Parameters: *** {} *** Markdown input: *** Here is an example of AppleScript: tell application "Foo" beep end tell tab *** Output of inspect *** md_el(:document,[ md_par(["Here is an example of AppleScript:"]), md_el(:code,[],{:raw_code=>"tell application \"Foo\"\n beep\nend tell\n\ttab", :lang=>nil},[]) ],{},[]) *** Output of to_html ***Here is an example of AppleScript:
tell application "Foo"
beep
end tell
tab
*** Output of to_latex ***
Here is an example of AppleScript:
\begin{verbatim}tell application "Foo"
beep
end tell
tab\end{verbatim}
*** Output of to_md ***
Here is an example of AppleScript:
tell application "Foo"
beep
end tell
tab
*** Output of to_s ***
Here is an example of AppleScript:
maruku-0.7.1/spec/block_docs/list_multipara.md 0000644 0000041 0000041 00000001507 12271517176 021476 0 ustar www-data www-data Lists with multiple paragraphs
*** Parameters: ***
{}
*** Markdown input: ***
* A list item with a couple paragraphs,
each of which is indented.
For example, this paragraph.
* Another list item
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li([
md_par("A list item with a couple paragraphs, each of which is indented."),
md_par("For example, this paragraph.")
], true),
md_li(md_par("Another list item"), false)
]))
*** Output of to_html ***
A list item with a couple paragraphs, each of which is indented.
For example, this paragraph.
Another list item
taking part in some arcane conspirations which involve coffee, robots, sushi,
*** Output of to_latex *** taking part in which involve , , , *** Output of to_md *** taking part in which involve , , , *** Output of to_s *** taking part in which involve , , , maruku-0.7.1/spec/block_docs/loss.md 0000644 0000041 0000041 00000000623 12271517176 017423 0 ustar www-data www-data maruku treats all HTML as a block level element, but it should treat inline elements as part of a paragraph, even if they start the line. *** Parameters: *** {} # params *** Markdown input: ***
123
@ foo
maruku-0.7.1/spec/block_docs/issue89.md 0000644 0000041 0000041 00000001134 12271517176 017752 0 ustar www-data www-data https://github.com/bhollis/maruku/issues/89 - Markdown extra .class ALD parsing error *** Parameters: *** {} *** Markdown input: *** [{.alignright}](http://testsite.com/big-data) *** Output of inspect *** md_el(:document, md_par(md_im_link(md_im_image("Alt text", "/Understanding-Big-Data-Cover-201x300.jpg", nil, [[:class, "alignright"]]), "http://testsite.com/big-data", nil))) *** Output of to_html *** maruku-0.7.1/spec/block_docs/ref_with_title.md 0000644 0000041 0000041 00000000663 12271517176 021457 0 ustar www-data www-data Comment *** Parameters: *** {} *** Markdown input: *** [bar][1]. [1]: /url/ "Title" *** Output of inspect *** md_el(:document,[ md_par([md_link(["bar"],"1"), "."]), md_ref_def("1", "/url/", {:title=>"Title"}) ],{},[]) *** Output of to_html ***bar.
*** Output of to_latex *** \href{/url/}{bar}. *** Output of to_md *** [bar][1]. [1]: /url/ "Title" *** Output of to_s *** bar. maruku-0.7.1/spec/block_docs/abbreviations.md 0000644 0000041 0000041 00000003454 12271517176 021300 0 ustar www-data www-data Write a comment abouth the test here. *** Parameters: *** {} *** Markdown input: *** The HTML specification is maintained by the W3C. The W3C is headquartered in Geneva. *[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium Operation Tigra Genesis is going well. *[Tigra Genesis]: *** Output of inspect *** md_el(:document,[ md_par([ "The ", md_el(:abbr,["HTML"],{:title=>"Hyper Text Markup Language"},[]), " specification is maintained by the ", md_el(:abbr,["W3C"],{:title=>"World Wide Web Consortium"},[]), ". The ", md_el(:abbr,["W3C"],{:title=>"World Wide Web Consortium"},[]), " is headquartered in Geneva." ]), md_el(:abbr_def,[],{:abbr=>"HTML",:text=>"Hyper Text Markup Language"},[]), md_el(:abbr_def,[],{:abbr=>"W3C",:text=>"World Wide Web Consortium"},[]), md_par([ "Operation ", md_el(:abbr,["Tigra Genesis"],{:title=>nil},[]), " is going well." ]), md_el(:abbr_def,[],{:abbr=>"Tigra Genesis",:text=>nil},[]) ],{},[]) *** Output of to_html ***The HTML specification is maintained by the W3C. The W3C is headquartered in Geneva.
Operation Tigra Genesis is going well.
*** Output of to_latex *** The HTML specification is maintained by the W3C. The W3C is headquartered in Geneva. Operation Tigra Genesis is going well. *** Output of to_md *** The HTML specification is maintained by the W3C. The W3C is headquartered in Geneva. *[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium Operation Tigra Genesis is going well. *[Tigra Genesis]: *** Output of to_s *** The HTML specification is maintained by the W3C. The W3C is headquartered in Geneva.Operation Tigra Genesis is going well. maruku-0.7.1/spec/block_docs/link.md 0000644 0000041 0000041 00000004245 12271517176 017404 0 ustar www-data www-data *** Parameters: *** {} # params *** Markdown input: ***<http://www.dd.com>
<a@invalid.it>
*** Output of to_latex ***
\href{http://www.aa.com}{http\char58\char47\char47www\char46aa\char46com}
\href{http://www.bb.com}{http\char58\char47\char47www\char46bb\char46com}
\href{http://www.cc.com}{http\char58\char47\char47www\char46cc\char46com}
\href{http://www.dd.com}{http\char58\char47\char47www\char46dd\char46com}
\begin{verbatim}This is an .
This is an .
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["A list item with a blockquote:"]),
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
],{:want_my_paragraph=>true},[]),
md_el(:li,[
md_par(["A list item with a code block:"]),
md_el(:code,[],{:raw_code=>"", :lang=>nil},[])
],{:want_my_paragraph=>true},[])
],{},[])
],{},[])
*** Output of to_html ***
-
A list item with a blockquote:
This is a blockquote inside a list item.
-
A list item with a code block:
<code goes here>
*** Output of to_latex ***
\begin{itemize}%
\item A list item with a blockquote:
\begin{quote}%
This is a blockquote inside a list item.
\end{quote}
\item A list item with a code block:
\begin{verbatim}\end{verbatim}
\end{itemize}
*** Output of to_md ***
- list item with a blockquote:
This is a blockquote inside a list
item.
- list item with a code block:
*** Output of to_s ***
A list item with a blockquote:This is a blockquote inside a list item.A list item with a code block:
maruku-0.7.1/spec/block_docs/headers.md 0000644 0000041 0000041 00000002451 12271517176 020057 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{:title=>"A title with emphasis"}
*** Markdown input: ***
A title with *emphasis*
=======================
A title with *emphasis*
-----------------------
#### A title with *emphasis* ####
*** Output of inspect ***
md_el(:document,[
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>1},[]),
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>2},[]),
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>4},[])
],{},[])
*** Output of to_html ***
A title with emphasis
A title with emphasis
A title with emphasis
*** Output of to_latex ***
\hypertarget{a_title_with_emphasis}{}\section*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
\hypertarget{a_title_with_emphasis_2}{}\subsection*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis_2}
\hypertarget{a_title_with_emphasis_3}{}\paragraph*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis_3}
*** Output of to_md ***
# A title with *emphasis* #
## A title with *emphasis* ##
#### A title with *emphasis* ####
*** Output of to_s ***
A title with emphasisA title with emphasisA title with emphasis
maruku-0.7.1/spec/block_docs/code3.md 0000644 0000041 0000041 00000002535 12271517176 017444 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This is code (4 spaces):
Code
This is not code
Code
This is code (1 tab):
Code
This is not code
Code
*** Output of inspect ***
md_el(:document,[
md_par(["This is code (4 spaces):"]),
md_el(:code,[],{:raw_code=>"Code", :lang=>nil},[]),
md_par(["This is not code"]),
md_el(:code,[],{:raw_code=>"Code", :lang=>nil},[]),
md_par(["This is code (1 tab):"]),
md_el(:code,[],{:raw_code=>"Code", :lang=>nil},[]),
md_par(["This is not code"]),
md_el(:code,[],{:raw_code=>"Code", :lang=>nil},[])
],{},[])
*** Output of to_html ***
This is code (4 spaces):
Code
This is not code
Code
This is code (1 tab):
Code
This is not code
Code
*** Output of to_latex ***
This is code (4 spaces):
\begin{verbatim}Code\end{verbatim}
This is not code
\begin{verbatim}Code\end{verbatim}
This is code (1 tab):
\begin{verbatim}Code\end{verbatim}
This is not code
\begin{verbatim}Code\end{verbatim}
*** Output of to_md ***
This is code (4 spaces):
Code
This is not code
Code
This is code (1 tab):
Code
This is not code
Code
*** Output of to_s ***
This is code (4 spaces):This is not codeThis is code (1 tab):This is not code
maruku-0.7.1/spec/block_docs/lists_blank.md 0000644 0000041 0000041 00000000751 12271517176 020752 0 ustar www-data www-data Lists should allow newlines between items.
*** Parameters: ***
{}
*** Markdown input: ***
* A list item
* Another list item
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_li(md_par("A list item"), true),
md_li(md_par("Another list item"), false)
])
])
*** Output of to_html ***
-
A list item
-
Another list item
*** Output of to_latex ***
\begin{itemize}%
\item A list item
\item Another list item
\end{itemize}
maruku-0.7.1/spec/block_docs/alt.md 0000644 0000041 0000041 00000000547 12271517176 017230 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***

*** Output of inspect ***
md_el(:document,[md_par([md_im_image(["bar"], "/foo.jpg", nil)])],{},[])
*** Output of to_html ***

*** Output of to_latex ***
*** Output of to_md ***

*** Output of to_s ***
bar
maruku-0.7.1/spec/block_docs/xml_comments.md 0000644 0000041 0000041 00000001251 12271517176 021146 0 ustar www-data www-data XML Comments need to be handled properly.
Note that output is kind of weird because we modify the comment in order to let REXML parse it due to https://bugs.ruby-lang.org/issues/9277.
*** Parameters: ***
{}
*** Markdown input: ***
*** Output of inspect ***
md_el(:document,[md_html(""),
md_html(""),
md_html(""),
md_html("")])
*** Output of to_html ***
maruku-0.7.1/spec/block_docs/ticks.md 0000644 0000041 0000041 00000001030 12271517176 017551 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
``There is a literal backtick (`) here.``
*** Output of inspect ***
md_el(:document,[md_par([md_code("There is a literal backtick (`) here.")])],{},[])
*** Output of to_html ***
There is a literal backtick (`) here.
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt There\char32is\char32a\char32literal\char32backtick\char32\char40\char96\char41\char32here\char46}}
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/header_after_par.md 0000644 0000041 0000041 00000002017 12271517176 021715 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{:title=>"header"}
*** Markdown input: ***
Paragraph
### header 1 ###
Paragraph
header 2
--------
Paragraph
header 3
========
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph"]),
md_el(:header,["header 1"],{:level=>3},[]),
md_par(["Paragraph"]),
md_el(:header,["header 2"],{:level=>2},[]),
md_par(["Paragraph"]),
md_el(:header,["header 3"],{:level=>1},[])
],{},[])
*** Output of to_html ***
Paragraph
header 1
Paragraph
header 2
Paragraph
header 3
*** Output of to_latex ***
Paragraph
\hypertarget{header_1}{}\subsubsection*{{header 1}}\label{header_1}
Paragraph
\hypertarget{header_2}{}\subsection*{{header 2}}\label{header_2}
Paragraph
\hypertarget{header_3}{}\section*{{header 3}}\label{header_3}
*** Output of to_md ***
Paragraph
### header
Paragraph
## header
Paragraph
# header
*** Output of to_s ***
ParagraphheaderParagraphheaderParagraphheader
maruku-0.7.1/spec/block_docs/iframe.md 0000644 0000041 0000041 00000001062 12271517176 017704 0 ustar www-data www-data Embed html iframe element
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph1
Paragraph2
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph1"]),
md_html(''),
md_par(["Paragraph2"])
],{},[])
*** Output of to_html ***
Paragraph1
Paragraph2
*** Output of to_latex ***
Paragraph1
Paragraph2
*** Output of to_md ***
Paragraph1
Paragraph2
*** Output of to_s ***
Paragraph1Paragraph2
maruku-0.7.1/spec/block_docs/wrapping.md 0000644 0000041 0000041 00000007472 12271517176 020303 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
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:
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 ipsum dolor amet
Lorem ipsum Break:
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
*** Output of inspect ***
md_el(:document,[
md_par([
"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:",
md_el(:linebreak,[],{},[]),
"Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet."
]),
md_el(:ul,[
md_el(:li,[
"Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet Lorem ipsum Break:",
md_el(:linebreak,[],{},[]),
"Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet"
],{:want_my_paragraph=>false},[]),
md_el(:li,[
"Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet"
],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
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:
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 ipsum dolor amet Lorem ipsum Break:
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
*** Output of to_latex ***
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:\newline Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet.
\begin{itemize}%
\item Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet Lorem ipsum Break:\newline Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet
\item Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet
\end{itemize}
*** Output of to_md ***
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:
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 ipsum dolor amet Lorem ipsum
Break:
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
*** Output of to_s ***
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: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 ipsum dolor amet Lorem ipsum Break:Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor ametLorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet. Lorem ipsum dolor amet
maruku-0.7.1/spec/block_docs/ie.md 0000644 0000041 0000041 00000005220 12271517176 017036 0 ustar www-data www-data We must make sure that `'` is always written as `'`.
*** Parameters: ***
{:html_use_syntax => true} # params
*** Markdown input: ***
`here's an apostrophe & a quote "
`
here's an apostrophe & a quote "
{:}
here's an apostrophe & a quote "
{:lang=xml}
here's an apostrophe & a quote "
{:html_use_syntax=true lang=not_supported}
here's an apostrophe & a quote "
{:html_use_syntax=true lang=xml}
*** Output of inspect ***
md_el(:document,[
md_par([md_code("here's an apostrophe & a quote \"
")]),
md_el(:code,[],{:raw_code=>"here's an apostrophe & a quote \"
", :lang=>nil},[]),
md_el(:code,[],{:raw_code=>"here's an apostrophe & a quote \"
", :lang=>nil},[["lang", "xml"]]),
md_el(:code,[],{:raw_code=>"here's an apostrophe & a quote \"
", :lang=>nil},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
md_el(:code,[],{:raw_code=>"here's an apostrophe & a quote \"
", :lang=>nil},[["html_use_syntax", "true"], ["lang", "xml"]])
],{},[])
*** Output of to_html ***
<p>here's an apostrophe & a quote "</p>
<p>here's an apostrophe & a quote "</p>
<p>here's an apostrophe & a quote "</p>
<p>here's an apostrophe & a quote "</p>
<p>here's an apostrophe & a quote "</p>
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s\char32an\char32apostrophe\char32\char38\char32a\char32quote\char32\char34\char60\char47p\char62}}
\begin{verbatim}here's an apostrophe & a quote "
\end{verbatim}
\begin{verbatim}here's an apostrophe & a quote "
\end{verbatim}
\begin{verbatim}here's an apostrophe & a quote "
\end{verbatim}
\begin{verbatim}here's an apostrophe & a quote "
\end{verbatim}
*** Output of to_md ***
`here's an apostrophe & a quote "
`
here's an apostrophe & a quote "
{:}
here's an apostrophe & a quote "
{:lang=xml}
here's an apostrophe & a quote "
{:html_use_syntax=true lang=not_supported}
here's an apostrophe & a quote "
{:html_use_syntax=true lang=xml}
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/recover/ 0000755 0000041 0000041 00000000000 12271517176 017565 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/recover/recover_links.md 0000644 0000041 0000041 00000001021 12271517176 022746 0 ustar www-data www-data Maruku should not mangle references that don't exist.
*** Parameters: ***
{:on_error=>:warning}
*** Markdown input: ***
Search on [Google images][ GoOgle search ]
*** Output of inspect ***
md_el(:document,[md_par(["Search on ", md_link(["Google images"]," \tGoOgle search ")])],{},[])
*** Output of to_html ***
Search on [Google images][ GoOgle search ]
*** Output of to_latex ***
Search on Google images
*** Output of to_md ***
Search on [Google images][ GoOgle search ]
*** Output of to_s ***
Search on Google images
maruku-0.7.1/spec/block_docs/xml.md 0000644 0000041 0000041 00000002403 12271517176 017241 0 ustar www-data www-data JRUBY NOKOGIRI PENDING - Write a comment here
(JRuby Nokogiri is broken for empty tags: https://github.com/sparklemotion/nokogiri/issues/971)
*** Parameters: ***
{:on_error=>:raise}
*** Markdown input: ***
*** Output of inspect ***
md_el(:document,[
md_html(""),
md_html("\n \n\t \n\t \n \n ")
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/inline_html.md 0000644 0000041 0000041 00000006266 12271517176 020756 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{:css=>"style.css"}
*** Markdown input: ***
CSS: style.css
Input:
Emphasis
Result: Emphasis
Input:
Result on span:
Result alone:
Without closing:
This is *true* markdown text (paragraph)
This is *true* markdown text (no paragraph)
This is *true* markdown text (block paragraph)
This is a *true* markdown text. (no par)
This is *true* markdown text. (par)
*** Output of inspect ***
md_el(:document,[
md_par(["Input:"]),
md_el(:code,[],{:raw_code=>"Emphasis", :lang=>nil},[]),
md_par(["Result: ", md_html("Emphasis")]),
md_par(["Input:"]),
md_el(:code,[],{:raw_code=>"
", :lang=>nil},[]),
md_par([
"Result on span: ",
md_html("
")
]),
md_par(["Result alone:"]),
md_par(md_html("
")),
md_par(["Without closing:"]),
md_par(md_html("
")),
md_html("\n This is *true* markdown text (paragraph)\n\n \n This is *true* markdown text (no paragraph)\n
\n \n This is *true* markdown text (block paragraph)\n
\n"),
md_html("\n\nThis is a *true* markdown text. (no par) \nThis is *true* markdown text. (par) \n \n
")
],{},[])
*** Output of to_html ***
Input:
<em>Emphasis</em>
Result: Emphasis
Input:
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
Result on span: 
Result alone:

Without closing:

This is true markdown text (paragraph)
This is true markdown text (no paragraph)
This is true markdown text (block paragraph)
This is a true markdown text. (no par)
This is true markdown text. (par)
*** Output of to_latex ***
Input:
\begin{verbatim}Emphasis\end{verbatim}
Result:
Input:
\begin{verbatim}
\end{verbatim}
Result on span:
Result alone:
Without closing:
*** Output of to_md ***
Input:
Result:
Input:
Result on span:
Result alone:
Without closing:
*** Output of to_s ***
Input:Result: Input:Result on span: Result alone:Without closing:
maruku-0.7.1/spec/block_docs/lists_nested.md 0000644 0000041 0000041 00000001076 12271517176 021146 0 ustar www-data www-data Nesting lists.
*** Parameters: ***
{} # params
*** Markdown input: ***
* A list item
* Foo
* Bar
* Bax
* Bap
* Another list item
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li([
"A list item",
md_el(:ul, [
md_li("Foo", false),
md_li([
"Bar",
md_el(:ul, [
md_li("Bax", false),
md_li("Bap", false)
])
], false)
])
], false),
md_li("Another list item", false)
]))
*** Output of to_html ***
- A list item
- Foo
- Bar
- Bax
- Bap
- Another list item
maruku-0.7.1/spec/block_docs/fenced_code_blocks_highlighted.md 0000644 0000041 0000041 00000001753 12271517176 024563 0 ustar www-data www-data Fenced code blocks
*** Parameters: ***
{ :fenced_code_blocks => true, :html_use_syntax => true }
*** Markdown input: ***
```ruby
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
```
*** Output of inspect ***
*** Output of to_html ***
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
maruku-0.7.1/spec/block_docs/bug_table.md 0000644 0000041 0000041 00000002253 12271517176 020370 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
hello
{: summary="Table summary" .class1 style="color:red"}
h | h
----------|--
{:t} c1 | c2
{: summary="Table summary" .class1 style="color:red"}
{:t: scope="row"}
*** Output of inspect ***
md_el(:document,[
md_par(["hello"], [["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
md_el(:table,[
[md_el(:head_cell,["h"],{},[]),
md_el(:head_cell,["h"],{},[])],
[md_el(:cell,[" c1"],{},[[:ref, "t"]]),
md_el(:cell,["c2"],{},[])]
],{:align=>[:left, :left]},[["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"t"},[])
],{},[])
*** Output of to_html ***
hello
h h c1 c2
*** Output of to_latex ***
hello
\begin{tabular}{l|l}
h&h\\
\hline
c1&c2\\
\end{tabular}
*** Output of to_md ***
hello
hh c1c2
*** Output of to_s ***
hellohh c1c2
maruku-0.7.1/spec/block_docs/xml3.md 0000644 0000041 0000041 00000000666 12271517176 017335 0 ustar www-data www-data The markdown="1" attribute does NOT get recursively applied
*** Parameters: ***
{}
*** Markdown input: ***
Blah
*em*
*** Output of inspect ***
md_el(:document,[
md_html("\n\tBlah\n\t\n\t\t*em* \n\t\n
")
],{},[])
*** Output of to_html ***
Blah
*em*
maruku-0.7.1/spec/block_docs/olist.md 0000644 0000041 0000041 00000001254 12271517176 017576 0 ustar www-data www-data
*** Parameters: ***
{}
*** Markdown input: ***
This is a list:
2. one
2. two
3. three
*** Output of inspect ***
md_el(:document,[
md_par(["This is a list:"]),
md_el(:ol,[
md_el(:li,["one"],{:want_my_paragraph=>false},[]),
md_el(:li,["two"],{:want_my_paragraph=>false},[]),
md_el(:li,["three"],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
This is a list:
- one
- two
- three
*** Output of to_latex ***
This is a list:
\begin{enumerate}%
\item one
\item two
\item three
\end{enumerate}
*** Output of to_md ***
This is a list:
1. one
2. two
3. three
*** Output of to_s ***
This is a list:onetwothree
maruku-0.7.1/spec/block_docs/ignore_bad_header.md 0000644 0000041 0000041 00000000575 12271517176 022052 0 ustar www-data www-data Pass weird messed up header through to output without blowing up. Secondary issue noticed via https://github.com/bhollis/maruku/issues/124
*** Parameters: ***
{:on_error => :raise}
*** Markdown input: ***
= Markdown, with some ruby =
*** Output of inspect ***
md_el(:document, md_par(["= Markdown, with some ruby ="]))
*** Output of to_html ***
= Markdown, with some ruby =
maruku-0.7.1/spec/block_docs/underscore_in_words.md 0000644 0000041 0000041 00000000715 12271517176 022522 0 ustar www-data www-data Note that Markdown.pl gives incorrect result here.
*** Parameters: ***
{} # params
*** Markdown input: ***
Ok, this_was a_really_old bug
*** Output of inspect ***
md_el(:document,[md_par(["Ok, this_was a_really_old bug"])],{},[])
*** Output of to_html ***
Ok, this_was a_really_old bug
*** Output of to_latex ***
Ok, this\_was a\_really\_old bug
*** Output of to_md ***
Ok, this_was a_really_old bug
*** Output of to_s ***
Ok, this_was a_really_old bug
maruku-0.7.1/spec/block_docs/attributes/ 0000755 0000041 0000041 00000000000 12271517176 020306 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/attributes/att3.md 0000644 0000041 0000041 00000000753 12271517176 021510 0 ustar www-data www-data IALs can refer to element before or after.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph1
{:#par1}
{:#par2}
Paragraph2
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph1"], [[:id, "par1"]]),
md_par(["Paragraph2"], [[:id, "par2"]])
],{},[])
*** Output of to_html ***
Paragraph1
Paragraph2
*** Output of to_latex ***
Paragraph1
Paragraph2
*** Output of to_md ***
Paragraph1
Paragraph2
*** Output of to_s ***
Paragraph1Paragraph2
maruku-0.7.1/spec/block_docs/attributes/default.md 0000644 0000041 0000041 00000000740 12271517176 022255 0 ustar www-data www-data This shows the use of default attributes list.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph2
{#2}
{paragraph}: .maruku-par
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph2"], [[:id, "2"]]),
md_el(:ald,[],{:ald=>[[:class, "maruku-par"]],:ald_id=>"paragraph"},[])
],{},[])
*** Output of to_html ***
Paragraph2
*** Output of to_latex ***
Paragraph2
*** Output of to_md ***
Paragraph2
*** Output of to_s ***
Paragraph2
maruku-0.7.1/spec/block_docs/attributes/circular.md 0000644 0000041 0000041 00000000657 12271517176 022444 0 ustar www-data www-data
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph
{:a}
{:a: b}
{:b: a}
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph"], [[:ref, "a"]]),
md_el(:ald,[],{:ald=>[[:ref, "b"]],:ald_id=>"a"},[]),
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
],{},[])
*** Output of to_html ***
Paragraph
*** Output of to_latex ***
Paragraph
*** Output of to_md ***
Paragraph
*** Output of to_s ***
Paragraph
maruku-0.7.1/spec/block_docs/attributes/attributes.md 0000644 0000041 0000041 00000003272 12271517176 023022 0 ustar www-data www-data This is a simple test for attributes
*** Parameters: ***
{}
*** Markdown input: ***
Header with attributes {#header1}
----------------------
### Header with attributes ### {#header2}
### Header no attributes ###
{:warn2}Paragraph with a.
{#par1}
Paragraph with *emphasis*{:hello notfound}
{#par2}
{:hello: .chello}
*** Output of inspect ***
md_el(:document,[
md_el(:header,["Header with attributes"],{:level=>2},[[:id, "header1"]]),
md_el(:header,["Header with attributes"],{:level=>3},[[:id, "header2"]]),
md_el(:header,["Header no attributes"],{:level=>3},[]),
md_par(["Paragraph with a."], [[:id, "par1"]]),
md_par([
"Paragraph with ",
md_em(["emphasis"], [[:ref, "hello"], [:ref, "notfound"]])
], [[:id, "par2"]]),
md_el(:ald,[],{:ald=>[[:class, "chello"]],:ald_id=>"hello"},[])
],{},[])
*** Output of to_html ***
Header with attributes
Header with attributes
Header no attributes
Paragraph with a.
Paragraph with emphasis
*** Output of to_latex ***
\hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}
\hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}
\hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}
Paragraph with a.
Paragraph with \emph{emphasis}
*** Output of to_md ***
## Header with attributes ##
### Header with attributes ###
### Header no attributes ###
Paragraph with a.
Paragraph with *emphasis*
*** Output of to_s ***
Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis
maruku-0.7.1/spec/block_docs/attributes/att2.md 0000644 0000041 0000041 00000000512 12271517176 021500 0 ustar www-data www-data
*** Parameters: ***
{}
*** Markdown input: ***
{a}: a
{:b: a}
*** Output of inspect ***
md_el(:document,[
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"a"},[]),
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/list1.md 0000644 0000041 0000041 00000001661 12271517176 017502 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* A list item with a blockquote:
> This is a blockquote
> inside a list item.
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["A list item with a blockquote:"]),
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
],{:want_my_paragraph=>true},[])
],{},[])
],{},[])
*** Output of to_html ***
-
A list item with a blockquote:
This is a blockquote inside a list item.
*** Output of to_latex ***
\begin{itemize}%
\item A list item with a blockquote:
\begin{quote}%
This is a blockquote inside a list item.
\end{quote}
\end{itemize}
*** Output of to_md ***
- list item with a blockquote:
This is a blockquote inside a list
item.
*** Output of to_s ***
A list item with a blockquote:This is a blockquote inside a list item.
maruku-0.7.1/spec/block_docs/lists_paraindent.md 0000644 0000041 0000041 00000001050 12271517176 022001 0 ustar www-data www-data Indentation is weird...
*** Parameters: ***
{} # params
*** Markdown input: ***
* A list item
* Foo
* Bar
* Bax
Bap
* Another list item
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li([
"A list item",
md_el(:ul, [
md_li("Foo", false),
md_li([
"Bar",
md_el(:ul, [
md_li("Bax Bap", false)
])
], false)
])
], false),
md_li("Another list item", false)
]))
*** Output of to_html ***
- A list item
- Foo
- Bar
- Bax Bap
- Another list item
maruku-0.7.1/spec/block_docs/encoding/ 0000755 0000041 0000041 00000000000 12271517176 017706 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/encoding/utf-8.md 0000644 0000041 0000041 00000000736 12271517176 021201 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{:italian=>"\303\240\303\250\303\254\303\262\303\271."}
*** Markdown input: ***
Italian: àèìòù.
Japanese: マルク
*** Output of inspect ***
md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
*** Output of to_html ***
Japanese: マルク
*** Output of to_latex ***
Japanese: マルク
*** Output of to_md ***
Japanese: マルク
*** Output of to_s ***
Japanese: マルク
maruku-0.7.1/spec/block_docs/encoding/iso-8859-1.md 0000644 0000041 0000041 00000001073 12271517176 021574 0 ustar www-data www-data Encoding: iso-8859-1
*** Parameters: ***
{}
*** Markdown input: ***
Encoding: iso-8859-1
This is iso-8859-1: àèìàù.
*** Output of inspect ***
md_el(:document,[
md_par([
"This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
])
],{},[])
*** Output of to_html ***
This is iso-8859-1: à èìà ù.
*** Output of to_latex ***
This is iso-8859-1: à èìà ù.
*** Output of to_md ***
This is iso-8859-1: à èìà ù.
*** Output of to_s ***
This is iso-8859-1: à èìà ù.
maruku-0.7.1/spec/block_docs/tables.md 0000644 0000041 0000041 00000004637 12271517176 017726 0 ustar www-data www-data PHP Markdown Extra table syntax
*** Parameters: ***
{} # params
*** Markdown input: ***
Col1 | Very very long head | Very very long head|
------- |:-------------------:|-------------------:|
cell | center-align | right-align |
another | cell | here |
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
*** Output of inspect ***
md_el(:document, [
md_el(:table, [
[md_el(:head_cell, "Col1"), md_el(:head_cell, "Very very long head"), md_el(:head_cell, "Very very long head")],
[md_el(:cell, "cell"), md_el(:cell, "center-align"), md_el(:cell, "right-align")],
[md_el(:cell, "another"), md_el(:cell, "cell"), md_el(:cell, "here")]
], {:align=>[:left, :center, :right]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]})
])
*** Output of to_html ***
Col1 Very very long head Very very long head cell center-align right-align
another cell here
First Header Second Header Content Cell Content Cell
Content Cell Content Cell
First Header Second Header Content Cell Content Cell
Content Cell Content Cell
maruku-0.7.1/spec/block_docs/test.md 0000644 0000041 0000041 00000000666 12271517176 017431 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
$ python
*** Output of inspect ***
md_el(:document,[md_el(:code,[],{:raw_code=>" $ python ", :lang=>nil},[])],{},[])
*** Output of to_html ***
$ python
*** Output of to_latex ***
\begin{verbatim} $ python \end{verbatim}
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/links.md 0000644 0000041 0000041 00000012503 12271517176 017563 0 ustar www-data www-data 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](http://google.com)
Inline with title: [Google images](http://google.com "Title")
Inline with title: [Google images]( http://google.com "Title" )
Search on or or ask
or you might ask bill@google.com.
If all else fails, ask [Google](http://www.google.com)
And now [reference-style link ID with spaces] [Google Images]
And now [reference-style link ID (without spaces)][Google Search]
[google]: http://www.google.com
[google2]: http://www.google.com 'Single quotes'
[google3]: http://www.google.com "Double quotes"
[google4]: http://www.google.com (Parenthesis)
[Google Search]:
http://www.google.com 'Google search'
[Google Images]:
http://images.google.com (Google images)
*** Output of inspect ***
md_el(:document,[
md_par(["Search on ", md_link(["Google"],"")]),
md_par(["Search on ", md_link(["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"],"")]),
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_par([
"And now ",
md_link(["reference-style link ID (without spaces)"], "Google Search")
]),
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
And now reference-style link ID (without 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}
And now \href{http://www.google.com}{reference-style link ID (without 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
And now
reference-style link ID (without 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 spacesAnd now reference-style link ID (without spaces)
maruku-0.7.1/spec/block_docs/issue120.md 0000644 0000041 0000041 00000002114 12271517176 020013 0 ustar www-data www-data Style tags should be OK with unescaped angle brackets and ampersands. https://github.com/bhollis/maruku/issues/120
NOTE: Commented CDATA is output because we use XHTML - for HTML mode it should be omitted.
*** Parameters: ***
{}
*** Markdown input: ***
*** Output of inspect ***
*** Output of to_html ***
maruku-0.7.1/spec/block_docs/lists13.md 0000644 0000041 0000041 00000001633 12271517176 017747 0 ustar www-data www-data List Items with non alphanumeric content
*** Parameters: ***
{}
*** Markdown input: ***
* {: #foo} A
* {: #bar } ?
* {#fubar} B
* {#fubar2 } C
* {Not an IAL}
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,["A"],{:want_my_paragraph=>false},[[:id, "foo"]]),
md_el(:li,["?"],{:want_my_paragraph=>false},[[:id, "bar"]]),
md_el(:li,["B"],{:want_my_paragraph=>false},[[:id, "fubar"]]),
md_el(:li,["C"],{:want_my_paragraph=>false},[[:id, "fubar2"]]),
md_el(:li,["{Not an IAL}"],{:want_my_paragraph=>false},[])
],{},[]),
],{},[])
*** Output of to_html ***
- A
- ?
- B
- C
- {Not an IAL}
*** Output of to_latex ***
\begin{itemize}%
\item A
\item ?
\item B
\item C
\item \{Not an IAL\}
\end{itemize}
*** Output of to_md ***
- A
- ?
- B
- C
- {Not an IAL}
*** Output of to_s ***
A?BC{Not an IAL}
maruku-0.7.1/spec/block_docs/fenced_code_blocks.md 0000644 0000041 0000041 00000004031 12271517176 022213 0 ustar www-data www-data Fenced code blocks
*** Parameters: ***
{ :fenced_code_blocks => true, :html_use_syntax => false }
*** Markdown input: ***
```ruby
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
```
```
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
```
~~~~~ruby
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
~~~~~~~
~~~~~
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
~~~~~
*** Output of inspect ***
md_el(:document, [
md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n :oauth_token => \"John's access token\",\n :oauth_token_secret => \"John's access secret\"\n)", :lang=>"ruby"}),
md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n :oauth_token => \"John's access token\",\n :oauth_token_secret => \"John's access secret\"\n)", :lang=>nil}),
md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n :oauth_token => \"John's access token\",\n :oauth_token_secret => \"John's access secret\"\n)", :lang=>"ruby"}),
md_el(:code, [], {:raw_code=>"john = Twitter::Client.new(\n :oauth_token => \"John's access token\",\n :oauth_token_secret => \"John's access secret\"\n)", :lang=>nil})
])
*** Output of to_html ***
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
john = Twitter::Client.new(
:oauth_token => "John's access token",
:oauth_token_secret => "John's access secret"
)
maruku-0.7.1/spec/block_docs/inline_html2.md 0000644 0000041 0000041 00000001067 12271517176 021032 0 ustar www-data www-data Markdown inside HTML according to Markdown Extra: http://michelf.ca/projects/php-markdown/extra/#markdown-attr
*** Parameters: ***
{}
*** Markdown input: ***
Test **bold**
Test **bold**
*** Output of inspect ***
md_el(:document,[
md_html("Test **bold**"),
md_html("Test **bold**
")
],{},[])
*** Output of to_html ***
Test bold
Test bold
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/paragraphs.md 0000644 0000041 0000041 00000001502 12271517176 020570 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph 1
Paragraph 2
Paragraph 3
Paragraph 4
Paragraph Br->
Paragraph 5
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph 1"]),
md_par(["Paragraph 2"]),
md_par([
"Paragraph 3 Paragraph 4 Paragraph Br->",
md_el(:linebreak,[],{},[]),
"Paragraph 5"
])
],{},[])
*** Output of to_html ***
Paragraph 1
Paragraph 2
Paragraph 3 Paragraph 4 Paragraph Br->
Paragraph 5
*** Output of to_latex ***
Paragraph 1
Paragraph 2
Paragraph 3 Paragraph 4 Paragraph Br-{\tt \symbol{62}}\newline Paragraph 5
*** Output of to_md ***
Paragraph 1
Paragraph 2
Paragraph 3 Paragraph 4 Paragraph Br->
Paragraph 5
*** Output of to_s ***
Paragraph 1Paragraph 2Paragraph 3 Paragraph 4 Paragraph Br->Paragraph 5
maruku-0.7.1/spec/block_docs/references/ 0000755 0000041 0000041 00000000000 12271517176 020241 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/references/long_example.md 0000644 0000041 0000041 00000007244 12271517176 023244 0 ustar www-data www-data Taken from the syntax document
*** Parameters: ***
{}
*** Markdown input: ***
filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
[Grutatext] [5], and [EtText] [6] -- the single biggest source of
inspiration for Markdown's syntax is the format of plain text email.
[1]: http://docutils.sourceforge.net/mirror/setext.html
[2]: http://www.aaronsw.com/2002/atx/
[3]: http://textism.com/tools/textile/
[4]: http://docutils.sourceforge.net/rst.html
[5]: http://www.triptico.com/software/grutatxt.html
[6]: http://ettext.taint.org/doc/
To this end, Markdown's syntax is comprised entirely of punctuation
*** Output of inspect ***
md_el(:document,[
md_par([
"filters ",
md_entity("ndash"),
" including ",
md_link(["Setext"],"1"),
", ",
md_link(["atx"],"2"),
", ",
md_link(["Textile"],"3"),
", ",
md_link(["reStructuredText"],"4"),
", ",
md_link(["Grutatext"],"5"),
", and ",
md_link(["EtText"],"6"),
" ",
md_entity("ndash"),
" the single biggest source of inspiration for Markdown",
md_entity("rsquo"),
"s syntax is the format of plain text email."
]),
md_ref_def("1", "http://docutils.sourceforge.net/mirror/setext.html", {:title=>nil}),
md_ref_def("2", "http://www.aaronsw.com/2002/atx/", {:title=>nil}),
md_ref_def("3", "http://textism.com/tools/textile/", {:title=>nil}),
md_ref_def("4", "http://docutils.sourceforge.net/rst.html", {:title=>nil}),
md_ref_def("5", "http://www.triptico.com/software/grutatxt.html", {:title=>nil}),
md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil}),
md_par([
"To this end, Markdown",
md_entity("rsquo"),
"s syntax is comprised entirely of punctuation"
])
],{},[])
*** Output of to_html ***
filters – including Setext, atx, Textile, reStructuredText, Grutatext, and EtText – the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.
To this end, Markdown’s syntax is comprised entirely of punctuation
*** Output of to_latex ***
filters -- including \href{http://docutils.sourceforge.net/mirror/setext.html}{Setext}, \href{http://www.aaronsw.com/2002/atx/}{atx}, \href{http://textism.com/tools/textile/}{Textile}, \href{http://docutils.sourceforge.net/rst.html}{reStructuredText}, \href{http://www.triptico.com/software/grutatxt.html}{Grutatext}, and \href{http://ettext.taint.org/doc/}{EtText} -- the single biggest source of inspiration for Markdown's syntax is the format of plain text email.
To this end, Markdown's syntax is comprised entirely of punctuation
*** Output of to_md ***
filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4],
[Grutatext] [5], and [EtText] [6] -- the single biggest source of
inspiration for Markdown's syntax is the format of plain text email.
[1]: http://docutils.sourceforge.net/mirror/setext.html
[2]: http://www.aaronsw.com/2002/atx/
[3]: http://textism.com/tools/textile/
[4]: http://docutils.sourceforge.net/rst.html
[5]: http://www.triptico.com/software/grutatxt.html
[6]: http://ettext.taint.org/doc/
To this end, Markdown's syntax is comprised entirely of punctuation
*** Output of to_s ***
filters including Setext, atx, Textile, reStructuredText, Grutatext, and EtText the single biggest source of inspiration for Markdowns syntax is the format of plain text email.To this end, Markdowns syntax is comprised entirely of punctuation
maruku-0.7.1/spec/block_docs/references/spaces_and_numbers.md 0000644 0000041 0000041 00000000532 12271517176 024416 0 ustar www-data www-data Spaces can be put before. ID can be a number
*** Parameters: ***
{}
*** Markdown input: ***
[6]: http://ettext.taint.org/doc/
*** Output of inspect ***
md_el(:document,[md_ref_def("6", "http://ettext.taint.org/doc/", {:title=>nil})],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/footnotes2.md 0000644 0000041 0000041 00000005762 12271517176 020556 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
require 'maruku/ext/math';{:html_math_engine => 'itex2mml'}
*** Markdown input: ***
Ruby on Rails is a web-framework[^framework]. It uses the MVC[^MVC] architecture pattern. It has its good points[^points].
[^framework]: a reusable set of libraries
[^MVC]: Model View Controller
[^points]: Here are its good points
1. Ease of use
2. Rapid development
That has nothing to do with putting equations in footnotes[^equations].
[^equations]: Like this:
$$
x = r\cos\theta
$$
*** Output of inspect ***
md_el(:document,[
md_par([
"Ruby on Rails is a web-framework",
md_foot_ref("^framework"),
". It uses the MVC",
md_foot_ref("^MVC"),
" architecture pattern. It has its good points",
md_foot_ref("^points"),
"."
]),
md_el(:footnote, md_par("a reusable set of libraries"), {:footnote_id=>"^framework"}),
md_el(:footnote, md_par("Model View Controller"), {:footnote_id=>"^MVC"}),
md_el(:footnote, [
md_par("Here are its good points"),
md_el(:ol, [md_li("Ease of use", false), md_li("Rapid development", false)])
], {:footnote_id=>"^points"}),
md_par([
"That has nothing to do with putting equations in footnotes",
md_foot_ref("^equations"),
"."
]),
md_el(:footnote, [
md_par("Like this:"),
md_el(:equation, [], {:math=>"\nx = r\\cos\\theta\n\n", :label=>nil, :num=>nil})
], {:footnote_id=>"^equations"})
],{},[])
*** Output of to_html ***
Ruby on Rails is a web-framework1. It uses the MVC2 architecture pattern. It has its good points3.
That has nothing to do with putting equations in footnotes4.
*** Output of to_latex ***
Ruby on Rails is a web-framework\footnote{a reusable set of libraries} . It uses the MVC\footnote{Model View Controller} architecture pattern. It has its good points\footnote{Here are its good points
\begin{enumerate}%
\item Ease of use
\item Rapid development
\end{enumerate}} .
That has nothing to do with putting equations in footnotes\footnote{Like this:
\begin{displaymath}
x = r\cos\theta
\end{displaymath}} . maruku-0.7.1/spec/block_docs/tables2.md 0000644 0000041 0000041 00000007624 12271517176 020007 0 ustar www-data www-data Trailing blanks in table rows
*** Parameters: ***
{} # params
*** Markdown input: ***
Col1 | Very very long head | Very very long head|
------- |:-------------------:|-------------------:|
cell | center-align | right-align |
another | cell | here |
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
First Header | Second Header|
------------- | -------------|
Content Cell | Content Cell|
Content Cell | Content Cell|
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell |
Content Cell | Content Cell
*** Output of inspect ***
md_el(:document, [
md_el(:table, [
[md_el(:head_cell, "Col1"), md_el(:head_cell, "Very very long head"), md_el(:head_cell, "Very very long head")],
[md_el(:cell, "cell"), md_el(:cell, "center-align"), md_el(:cell, "right-align")],
[md_el(:cell, "another"), md_el(:cell, "cell"), md_el(:cell, "here")]
], {:align=>[:left, :center, :right]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]}),
md_el(:table, [
[md_el(:head_cell, "First Header"), md_el(:head_cell, "Second Header")],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")],
[md_el(:cell, "Content Cell"), md_el(:cell, [])],
[md_el(:cell, "Content Cell"), md_el(:cell, "Content Cell")]
], {:align=>[:left, :left]})
])
*** Output of to_html ***
Col1 Very very long head Very very long head cell center-align right-align
another cell here
First Header Second Header Content Cell Content Cell
Content Cell Content Cell
First Header Second Header Content Cell Content Cell
Content Cell Content Cell
First Header Second Header Content Cell Content Cell
Content Cell Content Cell
First Header Second Header Content Cell Content Cell
Content Cell
Content Cell Content Cell
maruku-0.7.1/spec/block_docs/html5.md 0000644 0000041 0000041 00000001711 12271517176 017473 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
*** Output of inspect ***
md_el(:document,[
md_html(" ")
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/lists14.md 0000644 0000041 0000041 00000001716 12271517176 017752 0 ustar www-data www-data Nested Lists with IALs
*** Parameters: ***
{}
*** Markdown input: ***
1. First
* {: #bar} A
* B
2. {: .foo} Second
* C
* D
3. {:fubar style="color:red"} Third
*** Output of inspect ***
md_el(:document, [
md_el(:ol, [
md_li(["First",
md_el(:ul, [
md_li("A", false, [[:id, "bar"]]),
md_li("B", false)
], {}, [])
], false),
md_li([
"Second",
md_el(:ul, [md_li("C", false), md_li("D", false)],{},[])
], false, [[:class, "foo"]]),
md_li("Third", false, [[:ref, "fubar"],["style", "color:red"]])
],{},[])
],{},[])
*** Output of to_html ***
- First
- A
- B
- Second
- C
- D
- Third
*** Output of to_latex ***
\begin{enumerate}%
\item First\begin{itemize}%
\item A
\item B
\end{itemize}
\item Second\begin{itemize}%
\item C
\item D
\end{itemize}
\item Third
\end{enumerate}
maruku-0.7.1/spec/block_docs/paragraph_rules/ 0000755 0000041 0000041 00000000000 12271517176 021277 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/paragraph_rules/tab_is_blank.md 0000644 0000041 0000041 00000000663 12271517176 024236 0 ustar www-data www-data Paragraphs eat blank lines.
The following are two paragraphs:
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph1
Paragraph2
*** Output of inspect ***
md_el(:document,[md_par(["Paragraph1"]), md_par(["Paragraph2"])],{},[])
*** Output of to_html ***
Paragraph1
Paragraph2
*** Output of to_latex ***
Paragraph1
Paragraph2
*** Output of to_md ***
Paragraph1
Paragraph2
*** Output of to_s ***
Paragraph1Paragraph2
maruku-0.7.1/spec/block_docs/paragraph_rules/dont_merge_ref.md 0000644 0000041 0000041 00000001320 12271517176 024574 0 ustar www-data www-data Paragraphs eats everything, but not link definitions.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph
[google1]: #
Paragraph
[google2]: #
Paragraph
[google3]: #
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph"]),
md_ref_def("google1", "#", {:title=>nil}),
md_par(["Paragraph"]),
md_ref_def("google2", "#", {:title=>nil}),
md_par(["Paragraph"]),
md_ref_def("google3", "#", {:title=>nil})
],{},[])
*** Output of to_html ***
Paragraph
Paragraph
Paragraph
*** Output of to_latex ***
Paragraph
Paragraph
Paragraph
*** Output of to_md ***
Paragraph
[google1]: #
Paragraph
[google2]: #
Paragraph
[google3]: #
*** Output of to_s ***
ParagraphParagraphParagraph
maruku-0.7.1/spec/block_docs/bug_def.md 0000644 0000041 0000041 00000000474 12271517176 020042 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
[test][]:
*** Output of inspect ***
md_el(:document,[md_par([md_link(["test"], ""), ":"])],{},[])
*** Output of to_html ***
[test][]:
*** Output of to_latex ***
test:
*** Output of to_md ***
[test][]:
*** Output of to_s ***
test:
maruku-0.7.1/spec/block_docs/easy.md 0000644 0000041 0000041 00000000703 12271517176 017403 0 ustar www-data www-data Simple test for emphasis.
*** Parameters: ***
{}
*** Markdown input: ***
*Hello!* how are **you**?
*** Output of inspect ***
md_el(:document,[md_par([md_em(["Hello!"]), " how are ", md_strong(["you"]), "?"])],{},[])
*** Output of to_html ***
Hello! how are you?
*** Output of to_latex ***
\emph{Hello!} how are \textbf{you}?
*** Output of to_md ***
*Hello!* how are **you**?
*** Output of to_s ***
Hello! how are you?
maruku-0.7.1/spec/block_docs/extra_header_id.md 0000644 0000041 0000041 00000004161 12271517176 021553 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{:title=>"Header 1"}
*** Markdown input: ***
Header 1 {#header1}
========
Header 2 {#header2}
--------
### Header 3 ### {#header3}
Then you can create links to different parts of the same document like this:
[Link back to header 1](#header1),
[Link back to header 2](#header2),
[Link back to header 3](#header3)
*** Output of inspect ***
md_el(:document,[
md_el(:header,["Header 1"],{:level=>1},[[:id, "header1"]]),
md_el(:header,["Header 2"],{:level=>2},[[:id, "header2"]]),
md_el(:header,["Header 3"],{:level=>3},[[:id, "header3"]]),
md_par([
"Then you can create links to different parts of the same document like this:"
]),
md_par([
md_im_link(["Link back to header 1"], "#header1", nil),
", ",
md_im_link(["Link back to header 2"], "#header2", nil),
", ",
md_im_link(["Link back to header 3"], "#header3", nil)
])
],{},[])
*** Output of to_html ***
Header 1
Header 2
Header 3
Then you can create links to different parts of the same document like this:
Link back to header 1, Link back to header 2, Link back to header 3
*** Output of to_latex ***
\hypertarget{header1}{}\section*{{Header 1}}\label{header1}
\hypertarget{header2}{}\subsection*{{Header 2}}\label{header2}
\hypertarget{header3}{}\subsubsection*{{Header 3}}\label{header3}
Then you can create links to different parts of the same document like this:
\hyperlink{header1}{Link back to header 1}, \hyperlink{header2}{Link back to header 2}, \hyperlink{header3}{Link back to header 3}
*** Output of to_md ***
# Header 1 #
## Header 2 ##
### Header 3 ###
Then you can create links to different
parts of the same document like this:
[Link back to header 1](#header1),
[Link back to header 2](#header2),
[Link back to header 3](#header3)
*** Output of to_s ***
Header 1Header 2Header 3Then you can create links to different parts of the same document like this:Link back to header 1, Link back to header 2, Link back to header 3
maruku-0.7.1/spec/block_docs/lists_nested_blankline.md 0000644 0000041 0000041 00000000722 12271517176 023162 0 ustar www-data www-data Nesting lists should handle newlines inbetween list items.
*** Parameters: ***
{} # params
*** Markdown input: ***
* Bar
* Bax
* boo
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li([
md_par("Bar"),
md_el(:ul, [
md_li(md_par("Bax"), true),
md_li(md_par("boo"), false)
], {}, [])
],true)
],{},[]))
*** Output of to_html ***
-
Bar
-
Bax
-
boo
maruku-0.7.1/spec/block_docs/lists11.md 0000644 0000041 0000041 00000000622 12271517176 017742 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
- ένα
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[md_el(:li,["ένα"],{:want_my_paragraph=>false},[])],{},[])
],{},[])
*** Output of to_html ***
- ένα
*** Output of to_latex ***
\begin{itemize}%
\item ένα
\end{itemize}
*** Output of to_md ***
- ένα
*** Output of to_s ***
ένα
maruku-0.7.1/spec/block_docs/code2.md 0000644 0000041 0000041 00000001003 12271517176 017430 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
> Code
>
> Ciao
*** Output of inspect ***
md_el(:document,[
md_el(:quote,[md_par(["Code"]), md_el(:code,[],{:raw_code=>"Ciao", :lang=>nil},[])],{},[])
],{},[])
*** Output of to_html ***
Code
Ciao
*** Output of to_latex ***
\begin{quote}%
Code
\begin{verbatim}Ciao\end{verbatim}
\end{quote}
*** Output of to_md ***
> Code
>
> Ciao
*** Output of to_s ***
Code
maruku-0.7.1/spec/block_docs/images.md 0000644 0000041 0000041 00000007317 12271517176 017717 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This page does not utilize 
Please mouseover to see the title: 
Please mouseover to see the title: 
I'll say it one more time: this page does not use ![Cascading Style Sheets] [css]
This is double size: ![Cascading Style Sheets] [css2]
[css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
style="border:0;width:188px;height:131px"
*** Output of inspect ***
md_el(:document,[
md_par([
"This page does not utilize ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", nil)
]),
md_par([
"Please mouseover to see the title: ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
]),
md_par([
"Please mouseover to see the title: ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
]),
md_par([
"I",
md_entity("rsquo"),
"ll say it one more time: this page does not use ",
md_image(["Cascading Style Sheets"], "css")
]),
md_par([
"This is double size: ",
md_image(["Cascading Style Sheets"], "css2")
]),
md_ref_def("css", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"}),
md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"})
],{},[])
*** Output of to_html ***
This page does not utilize 
Please mouseover to see the title: 
Please mouseover to see the title: 
I’ll say it one more time: this page does not use 
This is double size: 
*** Output of to_latex ***
This page does not utilize
Please mouseover to see the title:
Please mouseover to see the title:
I'll say it one more time: this page does not use
This is double size:
*** Output of to_md ***
This page does not utilize

Please mouseover to see the title:

Please mouseover to see the title:

I'll say it one more time: this
page does not use
![Cascading Style Sheets][css]
This is double size:
![Cascading Style Sheets][css2]
[css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
style="border:0;width:188px;height:131px"
*** Output of to_s ***
This page does not utilize Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsIll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
maruku-0.7.1/spec/block_docs/html_block_in_para.md 0000644 0000041 0000041 00000000610 12271517176 022246 0 ustar www-data www-data Maruku should not nest block-level HTML inside a paragraph
*** Parameters: ***
{} # params
*** Markdown input: ***
One
a123
a123
*** Output of inspect ***
md_el(:document,[
md_par("One"),
md_html("a"),
md_par("123"),
md_html("a"),
md_par("123")
],{},[])
*** Output of to_html ***
One
a
123
a
123
maruku-0.7.1/spec/block_docs/issue124.md 0000644 0000041 0000041 00000001023 12271517176 020015 0 ustar www-data www-data Handle blocks of inline HTML without a newline without complaining. https://github.com/bhollis/maruku/issues/124
*** Parameters: ***
{:on_error => :raise}
*** Markdown input: ***
What follows uses ruby
東
京
.
*** Output of inspect ***
*** Output of to_html ***
What follows uses ruby
東
京
.
maruku-0.7.1/spec/block_docs/issue26.md 0000644 0000041 0000041 00000000721 12271517176 017742 0 ustar www-data www-data Nested lists shouldn't get tags wrapped around elements. https://github.com/bhollis/maruku/issues/26
*** Parameters: ***
{}
*** Markdown input: ***
- Root
+ Node
+ Node
- Root
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li(["Root", md_el(:ul, [md_li("Node", false), md_li("Node", false)])], false),
md_li("Root", false)
]))
*** Output of to_html ***
- Root
- Node
- Node
- Root
maruku-0.7.1/spec/block_docs/lists_tab.md 0000644 0000041 0000041 00000001450 12271517176 020426 0 ustar www-data www-data Sub-lists should be indentable with a single tab.
*** Parameters: ***
{} # params
*** Markdown input: ***
Ciao
* Tab
* Tab
* Tab
*** Output of inspect ***
md_el(:document,[
md_par(["Ciao"]),
md_el(:ul,[md_el(:li,["Tab",
md_el(:ul,[md_el(:li,["Tab",
md_el(:ul,[md_el(:li,["Tab"],{:want_my_paragraph=>false})])],
{:want_my_paragraph=>false})])],
{:want_my_paragraph=>false})])
])
*** Output of to_html ***
Ciao
- Tab
- Tab
- Tab
*** Output of to_latex ***
Ciao
\begin{itemize}%
\item Tab\begin{itemize}%
\item Tab\begin{itemize}%
\item Tab
\end{itemize}
\end{itemize}
\end{itemize}
*** Output of to_md ***
Ciao
-ab * Tab * Tab
*** Output of to_s ***
CiaoTab * Tab * Tab
maruku-0.7.1/spec/block_docs/attribute_sanitize.md 0000644 0000041 0000041 00000001247 12271517176 022357 0 ustar www-data www-data Make sure extended attributes get escaped when generating HTML: https://github.com/bhollis/maruku/issues/114
*** Parameters: ***
{} # params
*** Markdown input: ***
*foo*{: style='ball & chain'}
*foo*{: style='ball\008 chain'}
*foo*{: style='ball\" badAttribute=\"chain'}
*** Output of inspect ***
md_el(:document, [
md_par(md_em("foo", [["style", "ball & chain"]])),
md_par(md_em("foo", [["style", "ball\\008 chain"]])),
md_par(md_em("foo", [["style", "ball\" badAttribute=\"chain"]]))
])
*** Output of to_html ***
foo
foo
foo
maruku-0.7.1/spec/block_docs/table_colspan.md 0000644 0000041 0000041 00000003544 12271517176 021256 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
| h1 | h2 | h3 |
|:----------|:---:|-----:|
|c1 | c2 | c3 |
|c1 | c2 ||
|c1 || c2 |
|c1 |||
{: summary="Table summary" .class1 style="color:blue" border=1 width="50%" cellspacing=2em cellpadding=4px}
{:t: scope="row"}
*** Output of inspect ***
md_el(:document,[
md_el(:table, [
[md_el(:head_cell, "h1"), md_el(:head_cell, "h2"), md_el(:head_cell, "h3")],
[md_el(:cell, "c1"), md_el(:cell, "c2"), md_el(:cell, "c3")],
[md_el(:cell, "c1"), md_el(:cell, "c2", {}, [["colspan", "2"]])],
[md_el(:cell, "c1", {}, [["colspan", "2"]]), md_el(:cell, "c2")],
[md_el(:cell, "c1", {}, [["colspan", "3"]])]
],{:align=>[:left, :center, :right]},[["summary", "Table summary"], [:class, "class1"], ["style", "color:blue"], ["border", ""], ["width", "50%"], ["frame", "lhs"], ["rules", "cols"], ["cellspacing", "2em"], ["cellpadding", "4px"]]),
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"t"},[])
],{},[])
*** Output of to_html ***
h1 h2 h3
c1 c2 c3
c1 c2
c1 c2
c1
*** Output of to_latex ***
\begin{tabular}{l|c|r}
h1&h2&h3\\
\hline
c1&c2&c3\\
c1&\multicolumn {2}{|l|}{c2}\\
\multicolumn {2}{|l|}{c1}&c2\\
\multicolumn {3}{|l|}{c1}\\
\end{tabular}
maruku-0.7.1/spec/block_docs/one.md 0000644 0000041 0000041 00000000465 12271517176 017230 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
One line
*** Output of inspect ***
md_el(:document,[md_par(["One line"])],{},[])
*** Output of to_html ***
One line
*** Output of to_latex ***
One line
*** Output of to_md ***
One line
*** Output of to_s ***
One line
maruku-0.7.1/spec/block_docs/xml_instruction.md 0000644 0000041 0000041 00000002301 12271517176 021677 0 ustar www-data www-data Directives should be preserved.
*** Parameters: ***
{}
*** Markdown input: ***
noTarget?>
Targets noTarget?> !
Inside: last
*** Output of inspect ***
md_el(:document,[
md_el(:xml_instr,[],{:code=>" noTarget",:target=>""},[]),
md_el(:xml_instr,[],{:code=>"",:target=>"php"},[]),
md_el(:xml_instr,[],{:code=>"",:target=>"xml"},[]),
md_el(:xml_instr,[],{:code=>"",:target=>"mrk"},[]),
md_par([
"Targets ",
md_el(:xml_instr,[],{:code=>"noTarget",:target=>""},[]),
" ",
md_el(:xml_instr,[],{:code=>"",:target=>"php"},[]),
" ",
md_el(:xml_instr,[],{:code=>"",:target=>"xml"},[]),
" ",
md_el(:xml_instr,[],{:code=>"",:target=>"mrk"},[]),
" !"
]),
md_par([
"Inside: ",
md_el(:xml_instr,[],{:code=>"puts \"Inside: Hello\"",:target=>"mrk"},[]),
" last"
])
],{},[])
*** Output of to_html ***
<? noTarget?>
Targets <?noTarget?> !
Inside: last
*** Output of to_latex ***
Targets !
Inside: last
*** Output of to_md ***
Targets
Inside: last
*** Output of to_s ***
Targets Inside: last
maruku-0.7.1/spec/block_docs/table_attributes.md 0000644 0000041 0000041 00000002335 12271517176 022002 0 ustar www-data www-data Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
h | h
----------|---
{:t} c1 | c2
{: summary="Table summary" .class1 style="color:red" border=3 width="50%" frame=lhs rules=cols cellspacing=2em cellpadding=4px}
{:t: scope="row"}
*** Output of inspect ***
md_el(:document,[
md_el(:table,[
[md_el(:head_cell,["h"],{},[]),md_el(:head_cell,["h"],{},[])],
[md_el(:cell,[" c1"],{},[[:ref, "t"]]),md_el(:cell,["c2"],{},[])]
],{:align=>[:left, :left]},[["summary", "Table summary"], [:class, "class1"], ["style", "color:red"], ["border", "3"], ["width", "50%"], ["frame", "lhs"], ["rules", "cols"], ["cellspacing", "2em"], ["cellpadding", "4px"]]),
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"t"},[])
],{},[])
*** Output of to_html ***
h h c1 c2
*** Output of to_latex ***
\begin{tabular}{l|l}
h&h\\
\hline
c1&c2\\
\end{tabular}
*** Output of to_md ***
hh c1c2
*** Output of to_s ***
hh c1c2
maruku-0.7.1/spec/block_docs/divs/ 0000755 0000041 0000041 00000000000 12271517176 017065 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/divs/div2.md 0000644 0000041 0000041 00000000574 12271517176 020261 0 ustar www-data www-data Write a comment here
*** Parameters: ***
require 'maruku/ext/div'; {} # params
*** Markdown input: ***
+--
ciao
=--
*** Output of inspect ***
md_el(:document,[
md_el(:div,[md_par(["ciao"])],{:label=>nil,:num=>nil,:type=>nil},[])
],{},[])
*** Output of to_html ***
ciao
*** Output of to_latex ***
ciao
*** Output of to_md ***
ciao
*** Output of to_s ***
ciao
maruku-0.7.1/spec/block_docs/divs/div3_nest.md 0000644 0000041 0000041 00000002404 12271517176 021305 0 ustar www-data www-data JRUBY PENDING - This is just crazy, and crashes JRuby with its crazy regexes
*** Parameters: ***
require 'maruku/ext/div'; {} # params
*** Markdown input: ***
+-----------------------------------{.warning}------
| this is the last warning!
|
| please, go away!
|
| +------------------------------------- {.menace} --
| | or else terrible things will happen
| +--------------------------------------------------
+---------------------------------------------------
*** Output of inspect ***
md_el(:document,[
md_el(:div,[
md_par(["this is the last warning!"]),
md_par(["please, go away!"]),
md_el(:div,[md_par(["or else terrible things will happen"])],{:label=>nil,:num=>nil,:type=>nil},[[:class, "menace"]])
],{:label=>nil,:num=>nil,:type=>nil},[[:class, "warning"]])
],{},[])
*** Output of to_html ***
this is the last warning!
please, go away!
or else terrible things will happen
*** Output of to_latex ***
this is the last warning!
please, go away!
or else terrible things will happen
*** Output of to_md ***
this is the last warning!
please, go away!
or else terrible things will happen
*** Output of to_s ***
this is the last warning!please, go away!or else terrible things will happen
maruku-0.7.1/spec/block_docs/divs/div1.md 0000644 0000041 0000041 00000003576 12271517176 020265 0 ustar www-data www-data Write a comment here
*** Parameters: ***
require 'maruku/ext/div'; {} # params
*** Markdown input: ***
+---------
| text
+----------
+---------
|text
+--
text
=--
+---------
| text
+----------
+---------
|text
+--
text
=--
+---------
| text
+----------
+---------
|text
+--
text
=--
+---------
| text
+----------
+---------
|text
+--
text
=--
*** Output of inspect ***
md_el(:document,[
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[]),
md_el(:div,[md_par(["text"])],{:label=>nil,:num=>nil,:type=>nil},[])
],{},[])
*** Output of to_html ***
text
text
text
text
text
text
text
text
text
text
text
text
*** Output of to_latex ***
text
text
text
text
text
text
text
text
text
text
text
text
*** Output of to_md ***
text
text
text
text
text
text
text
text
text
text
text
text
*** Output of to_s ***
texttexttexttexttexttexttexttexttexttexttexttext
maruku-0.7.1/spec/block_docs/math/ 0000755 0000041 0000041 00000000000 12271517176 017051 5 ustar www-data www-data maruku-0.7.1/spec/block_docs/math/notmath.md 0000644 0000041 0000041 00000000756 12271517176 021055 0 ustar www-data www-data
*** Parameters: ***
require 'maruku/ext/math'; {:math_enabled => false}
*** Markdown input: ***
This is not $math$.
\[ \alpha \]
*** Output of inspect ***
md_el(:document,[md_par(["This is not $math$."]), md_par(["[ \\alpha ]"])],{},[])
*** Output of to_html ***
This is not $math$.
[ \alpha ]
*** Output of to_latex ***
This is not \$math\$.
[ $\backslash$alpha ]
*** Output of to_md ***
This is not $math$.
[ \alpha ]
*** Output of to_s ***
This is not $math$.[ \alpha ]
maruku-0.7.1/spec/block_docs/math/spaces_after_inline_math.md 0000644 0000041 0000041 00000001242 12271517176 024400 0 ustar www-data www-data
*** Parameters: ***
require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'}
*** Markdown input: ***
This *is* $a * b * c$ ahem.
*** Output of inspect ***
md_el(:document, md_par([
"This ",
md_em("is"),
" ",
md_el(:inline_math, [], {:math=>"a * b * c"}),
" ahem."
]))
*** Output of to_html ***
This is ahem.
*** Output of to_latex ***
This \emph{is} $a * b * c$ ahem.
maruku-0.7.1/spec/block_docs/math/inline.md 0000644 0000041 0000041 00000003111 12271517176 020645 0 ustar www-data www-data
*** Parameters: ***
require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'}
*** Markdown input: ***
Here are some formulas:
* $\alpha$
* $x^{n}+y^{n} \neq z^{n}$
That's it, nothing else is supported.
*** Output of inspect ***
md_el(:document,[
md_par(["Here are some formulas:"]),
md_el(:ul,[
md_el(:li,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
md_el(:li,[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 ***
Here are some formulas:
That’s it, nothing else is supported.
*** 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.
maruku-0.7.1/spec/block_docs/math/table2.md 0000644 0000041 0000041 00000002764 12271517176 020555 0 ustar www-data www-data
*** Parameters: ***
{}
*** Markdown input: ***
Symbol | Meaning | comments
------------|---------|---------
{:r} α | The first | I like it.
{:r} ℵ | The first | I like it.
{:r: scope='row'}
*** Output of inspect ***
md_el(:document,[
md_el(:table,[
[md_el(:head_cell,["Symbol"],{},[]),
md_el(:head_cell,["Meaning"],{},[]),
md_el(:head_cell,["comments"],{},[])],
[md_el(:cell,[" ", md_entity("alpha")],{},[[:ref, "r"]]),
md_el(:cell,["The first"],{},[]),
md_el(:cell,["I like it."],{},[])],
[md_el(:cell,[" ", md_entity("aleph")],{},[[:ref, "r"]]),
md_el(:cell,["The first"],{},[]),
md_el(:cell,["I like it."],{},[])]
],{:align=>[:left, :left, :left]},[]),
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"r"},[])
],{},[])
*** Output of to_html ***
Symbol Meaning comments α The first I like it.
ℵ The first I like it.
*** Output of to_latex ***
\begin{tabular}{l|l|l}
Symbol&Meaning&comments\\
\hline
$\alpha$&The first&I like it.\\
&The first&I like it.\\
\end{tabular}
*** Output of to_md ***
SymbolMeaningcomments The firstI like it. The firstI like it.
*** Output of to_s ***
SymbolMeaningcomments The firstI like it. The firstI like it.
maruku-0.7.1/spec/block_docs/math/raw_mathml.md 0000644 0000041 0000041 00000014366 12271517176 021540 0 ustar www-data www-data JRUBY NOKOGIRI PENDING - MathML inline with HTML
(JRuby Nokogiri is broken for empty tags: https://github.com/sparklemotion/nokogiri/issues/971)
*** Parameters: ***
{}
*** Markdown input: ***
In , .
*** Output of inspect ***
md_el(:document,[
md_par(["In ",
md_html(""),
", ",
md_html(""),
"."
]),
md_html("")
],{},[])
*** Output of to_html ***
In , .
maruku-0.7.1/spec/block_docs/math/equations.md 0000644 0000041 0000041 00000003433 12271517176 021406 0 ustar www-data www-data Write a comment here
*** Parameters: ***
require 'maruku/ext/math';{:html_math_engine => 'itex2mml'}
*** Markdown input: ***
$$ x = y $$
$$ x
= y $$
$$
x = y $$
$$ x = y
$$
*** Output of inspect ***
md_el(:document,[
md_el(:equation,[],{:label=>nil,:math=>" x = y ",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" x \n= y \n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" \nx = y \n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" x = y \n\n",:num=>nil},[])
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
\begin{displaymath}
x = y
\end{displaymath}
\begin{displaymath}
x
= y
\end{displaymath}
\begin{displaymath}
x = y
\end{displaymath}
\begin{displaymath}
x = y
\end{displaymath}
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/math/embedded_svg.md 0000644 0000041 0000041 00000016540 12271517176 022011 0 ustar www-data www-data Support embedded SVG in LaTeX expressions.
TODO: The LaTeX output does not look correct here!
*** Parameters: ***
require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'}
*** Markdown input: ***
In $SU(3)$, $\begin{svg}
\end{svg}\includegraphics[width=2em]{young1}
\otimes
\begin{svg}
\end{svg}\includegraphics[width=1em]{young2}
=
\begin{svg}
\end{svg}\includegraphics[width=2em]{young3}
\oplus
\begin{svg}
\end{svg}\includegraphics[width=3em]{young4}$.
*** Output of inspect ***
md_el(:document,[
md_par(["In ",
md_el(:inline_math, [], {:math=>"SU(3)"}),
", ",
md_el(:inline_math, [], {:math=>"\\begin{svg}\n\n\\end{svg}\\includegraphics[width=2em]{young1}\n \\otimes\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=1em]{young2}\n =\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=2em]{young3}\n \\oplus\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=3em]{young4}"}),
"."
])
],{},[])
*** Output of to_html ***
In , .
*** Output of to_latex ***
In $SU(3)$, $ \includegraphics[width=2em]{young1}
\otimes
\includegraphics[width=1em]{young2}
=
\includegraphics[width=2em]{young3}
\oplus
\includegraphics[width=3em]{young4}$.
maruku-0.7.1/spec/block_docs/math/embedded_invalid_svg.md 0000644 0000041 0000041 00000012163 12271517176 023514 0 ustar www-data www-data REXML PENDING - This tests that invalid SVG within LaTeX gets corrected and still output. I'm not sure why it should do that.
Pending because Nokogiri will handle the tagsoup but REXML won't.
TODO: The LaTeX output does not look correct here!
*** Parameters: ***
require 'maruku/ext/math'; {:html_math_engine => 'itex2mml'}
*** Markdown input: ***
In $SU(3)$, $\begin{svg}
\end{svg}\includegraphics[width=2em]{young1}
\otimes
\begin{svg}
\end{svg}\includegraphics[width=1em]{young2}
=
\begin{svg}
\end{svg}\includegraphics[width=2em]{young3}
\oplus
\begin{svg}
\end{svg}\includegraphics[width=3em]{young4}$.
*** Output of inspect ***
md_el(:document,[
md_par(["In ",
md_el(:inline_math, [], {:math=>"SU(3)"}),
", ",
md_el(:inline_math, [], {:math=>"\\begin{svg}\n\n\\end{svg}\\includegraphics[width=2em]{young1}\n \\otimes\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=1em]{young2}\n =\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=2em]{young3}\n \\oplus\n\\begin{svg}\n\n\\end{svg}\\includegraphics[width=3em]{young4}"}),
"."
])
],{},[])
*** Output of to_html ***
In , .
*** Output of to_latex ***
In $SU(3)$, $ \includegraphics[width=2em]{young1}
\otimes
\includegraphics[width=1em]{young2}
=
\includegraphics[width=2em]{young3}
\oplus
\includegraphics[width=3em]{young4}$.
maruku-0.7.1/spec/block_docs/math/math2.md 0000644 0000041 0000041 00000003557 12271517176 020420 0 ustar www-data www-data
*** Parameters: ***
require 'maruku/ext/math'
{:math_numbered => ['\\['], :html_math_engine => 'itex2mml' }
*** Markdown input: ***
\[
\alpha
\]
\begin{equation}
\alpha
\end{equation}
\begin{equation} \beta
\end{equation}
\begin{equation} \gamma \end{equation}
*** Output of inspect ***
md_el(:document,[
md_el(:equation,[],{:label=>"eq1",:math=>"\n\t\\alpha\n\n",:num=>1},[]),
md_el(:equation,[],{:label=>nil,:math=>"\n\t\\alpha\n\n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" \\beta\n\n",:num=>nil},[]),
md_el(:equation,[],{:label=>nil,:math=>" \\gamma ",:num=>nil},[])
],{},[])
*** Output of to_html ***
(1)
*** 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 ***
maruku-0.7.1/spec/block_docs/math/table.md 0000644 0000041 0000041 00000001651 12271517176 020465 0 ustar www-data www-data Write a comment here
*** Parameters: ***
require 'maruku/ext/math';{:html_math_engine => 'itex2mml' }
*** Markdown input: ***
$\alpha$
$\beta$
*** Output of inspect ***
md_el(:document,[
md_html("\n\t$\\alpha$\n\t\n\t\t$\\beta$ \n\t\n
")
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
maruku-0.7.1/spec/block_docs/issue90.md 0000644 0000041 0000041 00000002272 12271517176 017746 0 ustar www-data www-data https://github.com/bhollis/maruku/issues/90 - TOC not working without an H1 on the page.
*** Parameters: ***
{:use_numbered_headers => true}
*** Markdown input: ***
* Table of contents
{:toc}
## First Heading
Foo
## Second Heading
### Subheading
Foobar
*** Output of inspect ***
md_el(:document,[
md_el(:ul, md_li("Table of contents", false), {}, [[:ref, "toc"]]),
md_el(:header, "First Heading", {:level=>2}),
md_par("Foo"),
md_el(:header, "Second Heading", {:level=>2}),
md_el(:header, "Subheading", {:level=>3}),
md_par("Foobar")
],{},[])
*** Output of to_html ***
- 1. First Heading
- 2. Second Heading
- 2.1. Subheading
1. First Heading
Foo
2. Second Heading
2.1. Subheading
Foobar
maruku-0.7.1/spec/block_docs/html_inline.md 0000644 0000041 0000041 00000001217 12271517176 020745 0 ustar www-data www-data JRUBY NOKOGIRI PENDING - Maruku should nest inline-level HTML inside a paragraph
(JRuby Nokogiri is broken for empty tags: https://github.com/sparklemotion/nokogiri/issues/971)
*** Parameters: ***
{} # params
*** Markdown input: ***
One
123
123
123
*** Output of inspect ***
md_el(:document,[
md_par(["One ", md_html(""), "123"]),
md_par([md_html(""), "123"]),
md_par([md_html(" "), "123"]),
md_html(""),
],{},[])
*** Output of to_html ***
One 123
123
123
maruku-0.7.1/spec/block_docs/issue67.md 0000644 0000041 0000041 00000000765 12271517176 017757 0 ustar www-data www-data A span at the beginning of a list item shouldn't cause the other list elements to be wrapped in paragraphs or remove the inline element. https://github.com/bhollis/maruku/issues/67
*** Parameters: ***
{}
*** Markdown input: ***
- One
- Two
- Three
*** Output of inspect ***
md_el(:document, md_el(:ul, [
md_li("One", false),
md_li(md_html("Two"), false),
md_li("Three", false)
]))
*** Output of to_html ***
- One
Two
- Three
maruku-0.7.1/spec/block_docs/email.md 0000644 0000041 0000041 00000002050 12271517176 017526 0 ustar www-data www-data Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This is an email address:
Address:
*** Output of inspect ***
md_el(:document,[
md_par(["This is an email address: ", md_email("andrea@invalid.it")]),
md_par(["Address: ", md_email("andrea@invalid.it")])
],{},[])
*** Output of to_html ***
This is an email address: andrea@invalid.it
Address: andrea@invalid.it
*** Output of to_latex ***
This is an email address: \href{mailto:andrea@invalid.it}{andrea\char64invalid\char46it}
Address: \href{mailto:andrea@invalid.it}{andrea\char64invalid\char46it}
*** Output of to_md ***
This is an email address:
Address:
*** Output of to_s ***
This is an email address: Address:
maruku-0.7.1/spec/block_docs/issue31.md 0000644 0000041 0000041 00000001331 12271517176 017734 0 ustar www-data www-data Markdown should be processed inside span-level tags. https://github.com/bhollis/maruku/issues/31
*** Parameters: ***
{}
*** Markdown input: ***
*hello*
*hello*
hello *there*
hello
*there*
*** Output of inspect ***
md_el(:document, [
md_par(md_html("*hello*")),
md_html("*hello*
"),
md_par(md_html("hello *there*")),
md_par(md_html("hello\n*there*"))
])
*** Output of to_html ***
hello
*hello*
hello there
hello
there