File: link.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 (87 lines) | stat: -rw-r--r-- 2,213 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

*** Parameters: ***
{} # params
*** Markdown input: ***
<http://www.aa.com>

 <http://www.bb.com>

  <http://www.cc.com>

   <http://www.dd.com>

    <http://www.dd.com>

<a@invalid.it>

 <a@invalid.it>

   <a@invalid.it>

    <a@invalid.it>
*** Output of inspect ***
md_el(:document,[
	md_par([md_url("http://www.aa.com")]),
	md_par([md_url("http://www.bb.com")]),
	md_par([md_url("http://www.cc.com")]),
	md_par([md_url("http://www.dd.com")]),
	md_el(:code,[],{:raw_code=>"<http://www.dd.com>", :lang=>nil},[]),
	md_par([md_email("a@invalid.it")]),
	md_par([md_email("a@invalid.it")]),
	md_par([md_email("a@invalid.it")]),
	md_el(:code,[],{:raw_code=>"<a@invalid.it>", :lang=>nil},[])
],{},[])
*** Output of to_html ***
<p><a href="http://www.aa.com">http://www.aa.com</a></p>

<p><a href="http://www.bb.com">http://www.bb.com</a></p>

<p><a href="http://www.cc.com">http://www.cc.com</a></p>

<p><a href="http://www.dd.com">http://www.dd.com</a></p>

<pre><code>&lt;http://www.dd.com&gt;</code></pre>

<p><a href="mailto:a@invalid.it">&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>

<p><a href="mailto:a@invalid.it">&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>

<p><a href="mailto:a@invalid.it">&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>

<pre><code>&lt;a@invalid.it&gt;</code></pre>
*** 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}<http://www.dd.com>\end{verbatim}
\href{mailto:a@invalid.it}{a\char64invalid\char46it}

\href{mailto:a@invalid.it}{a\char64invalid\char46it}

\href{mailto:a@invalid.it}{a\char64invalid\char46it}

\begin{verbatim}<a@invalid.it>\end{verbatim}
*** Output of to_md ***
<http://www.aa.com>

 <http://www.bb.com>

  <http://www.cc.com>

   <http://www.dd.com>

    <http://www.dd.com>

<a@invalid.it>

 <a@invalid.it>

   <a@invalid.it>

    <a@invalid.it>
*** Output of to_s ***