File: bug_table.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 (46 lines) | stat: -rw-r--r-- 1,195 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
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 ***
<p class="class1" style="color:red">hello</p>
<table class="class1" style="color:red" summary="Table summary"><thead><tr><th>h</th><th>h</th></tr></thead><tbody><tr><th scope="row" style="text-align: left;"> c1</th><td style="text-align: left;">c2</td></tr>
</tbody></table>
*** 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