File: lists_blockquote_code.md

package info (click to toggle)
ruby-maruku 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,296 kB
  • ctags: 492
  • sloc: ruby: 5,726; xml: 235; makefile: 2
file content (64 lines) | stat: -rw-r--r-- 1,430 bytes parent folder | download | duplicates (3)
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
Lists should be able to contain blockquotes and code.
*** Parameters: ***
{}
*** Markdown input: ***
*   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 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=>"<code goes here>", :lang=>nil},[])
		],{:want_my_paragraph=>true},[])
	],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
<p>A list item with a blockquote:</p>

<blockquote>
<p>This is a blockquote inside a list item.</p>
</blockquote>
</li>

<li>
<p>A list item with a code block:</p>

<pre><code>&lt;code goes here&gt;</code></pre>
</li>
</ul>
*** 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}<code goes here>\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: