File: attributes.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 (65 lines) | stat: -rw-r--r-- 1,722 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
This is a simple test for attributes
*** Parameters: ***
{}
*** Markdown input: ***

Header with attributes	{#header1}	
----------------------

### Header with attributes ###	{#header2}	

### Header no attributes ###

{:warn2}Paragraph with a.
{#par1}

Paragraph with *emphasis*{:hello notfound}
   {#par2}

{:hello: .chello}
*** Output of inspect ***
md_el(:document,[
	md_el(:header,["Header with attributes"],{:level=>2},[[:id, "header1"]]),
	md_el(:header,["Header with attributes"],{:level=>3},[[:id, "header2"]]),
	md_el(:header,["Header no attributes"],{:level=>3},[]),
	md_par(["Paragraph with a."], [[:id, "par1"]]),
	md_par([
		"Paragraph with ",
		md_em(["emphasis"], [[:ref, "hello"], [:ref, "notfound"]])
	], [[:id, "par2"]]),
	md_el(:ald,[],{:ald=>[[:class, "chello"]],:ald_id=>"hello"},[])
],{},[])
*** Output of to_html ***
<h2 id="header1">Header with attributes</h2>

<h3 id="header2">Header with attributes</h3>

<h3 id="header_no_attributes">Header no attributes</h3>

<p id="par1">Paragraph with a.</p>

<p id="par2">Paragraph with <em class="chello">emphasis</em></p>
*** Output of to_latex ***
\hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}

\hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}

\hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}

Paragraph with a.

Paragraph with \emph{emphasis}
*** Output of to_md ***

## Header with attributes ##

### Header with attributes ###

### Header no attributes ###

Paragraph with a.

Paragraph with *emphasis*

*** Output of to_s ***
Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis