File: inline_html.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 (134 lines) | stat: -rw-r--r-- 3,254 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Write a comment abouth the test here.
*** Parameters: ***
{:css=>"style.css"}
*** Markdown input: ***
CSS: style.css

Input:

    <em>Emphasis</em>

Result: <em>Emphasis</em>

Input:

    <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>

Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>

Result alone: 

<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>

Without closing:

<img src="http://jigsaw.w3.org/css-validator/images/vcss">

<div markdown="1">
   This is *true* markdown text (paragraph)

   <p markdown="1">
   This is *true* markdown text (no paragraph)
   </p>
   <p markdown="block">
   This is *true* markdown text (block paragraph)
   </p>
</div>

<table>
<tr>
<td markdown="1">This is a *true* markdown text. (no par)</td>
<td markdown="block">This is *true* markdown text. (par)</td>
</tr>
</table>



*** Output of inspect ***
md_el(:document,[
	md_par(["Input:"]),
	md_el(:code,[],{:raw_code=>"<em>Emphasis</em>", :lang=>nil},[]),
	md_par(["Result: ", md_html("<em>Emphasis</em>")]),
	md_par(["Input:"]),
	md_el(:code,[],{:raw_code=>"<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\"/>", :lang=>nil},[]),
	md_par([
		"Result on span: ",
		md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
	]),
	md_par(["Result alone:"]),
	md_par(md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")),
	md_par(["Without closing:"]),
	md_par(md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")),
	md_html("<div markdown=\"1\">\n   This is *true* markdown text (paragraph)\n\n   <p markdown=\"1\">\n   This is *true* markdown text (no paragraph)\n   </p>\n   <p markdown=\"block\">\n   This is *true* markdown text (block paragraph)\n   </p>\n</div>"),
	md_html("<table>\n<tr>\n<td markdown=\"1\">This is a *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>")
],{},[])
*** Output of to_html ***
<p>Input:</p>

<pre><code>&lt;em&gt;Emphasis&lt;/em&gt;</code></pre>

<p>Result: <em>Emphasis</em></p>

<p>Input:</p>

<pre><code>&lt;img src="http://jigsaw.w3.org/css-validator/images/vcss"/&gt;</code></pre>

<p>Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss" /></p>

<p>Result alone:</p>

<p><img src="http://jigsaw.w3.org/css-validator/images/vcss" /></p>

<p>Without closing:</p>

<p><img src="http://jigsaw.w3.org/css-validator/images/vcss" /></p>
<div>
<p>This is <em>true</em> markdown text (paragraph)</p>


   <p>
   This is <em>true</em> markdown text (no paragraph)
   </p>
   <p>
<p>This is <em>true</em> markdown text (block paragraph)</p>

</p>
</div><table>
<tr>
<td>This is a <em>true</em> markdown text. (no par)</td>
<td>
<p>This is <em>true</em> markdown text. (par)</p>
</td>
</tr>
</table>

*** Output of to_latex ***
Input:

\begin{verbatim}<em>Emphasis</em>\end{verbatim}
Result: 

Input:

\begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>\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: