File: block_quotes.md

package info (click to toggle)
ruby-maruku 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 1,304 kB
  • sloc: ruby: 5,741; xml: 235; makefile: 2
file content (66 lines) | stat: -rw-r--r-- 1,480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Block quotes can continue over multiple lines
*** Parameters: ***
{}
*** Markdown input: ***

> Here's a quote.
Which goes over two lines.

> It continues here.
> > And has a subquote.
{: style='color:red'}

> Here's a quote.
> Which goes over two lines.
{#foo}

> Here's a quote.
  Which goes over two lines.

*** Output of inspect ***
md_el(:document,[
	md_el(:quote,
		[md_par(["Here", md_entity("rsquo"), "s a quote. Which goes over two lines."]),
		 md_par(["It continues here."]),
		 md_el(:quote, md_par("And has a subquote."))
	],{},[[:style, "color:red"]]),
	md_el(:quote, md_par(["Here", md_entity("rsquo"), "s a quote. Which goes over two lines."]),{},[[:id, "foo"]]),
	md_el(:quote, md_par(["Here", md_entity("rsquo"), "s a quote. Which goes over two lines."]))
],{},[])
*** Output of to_html ***
<blockquote style="color:red">
  <p>Here’s a quote. Which goes over two lines.</p>
  <p>It continues here.</p>
  <blockquote>
    <p>And has a subquote.</p>
  </blockquote>
</blockquote>
<blockquote id="foo">
  <p>Here’s a quote. Which goes over two lines.</p>
</blockquote>
<blockquote>
  <p>Here’s a quote. Which goes over two lines.</p>
</blockquote>
*** Output of to_latex ***
\begin{quote}%
Here's a quote. Which goes over two lines.

It continues here.

\begin{quote}%
And has a subquote.


\end{quote}

\end{quote}
\begin{quote}%
Here's a quote. Which goes over two lines.


\end{quote}
\begin{quote}%
Here's a quote. Which goes over two lines.


\end{quote}