maruku 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/bin/{maruku0.3 → marudown} +6 -14
  2. data/bin/maruku +1 -1
  3. data/bin/marutest +37 -9
  4. data/docs/TOFIX.html +22 -0
  5. data/docs/TOFIX.md +3 -0
  6. data/docs/changelog-0.2.13.html +30 -0
  7. data/docs/changelog-0.2.13.md +6 -0
  8. data/docs/changelog-0.3.html +19 -5
  9. data/docs/faq.html +51 -40
  10. data/docs/faq.md +3 -3
  11. data/docs/hidden_o_n_squared.md +10 -0
  12. data/docs/index.html +84 -396
  13. data/docs/markdown_syntax.html +139 -330
  14. data/docs/markdown_syntax.md +80 -93
  15. data/docs/maruku.html +84 -396
  16. data/docs/maruku.md +88 -158
  17. data/docs/proposal.html +13 -106
  18. data/docs/proposal.md +3 -3
  19. data/docs/todo.html +38 -28
  20. data/lib/maruku.rb +77 -11
  21. data/lib/maruku/attributes.rb +186 -0
  22. data/lib/maruku/defaults.rb +40 -0
  23. data/lib/maruku/errors_management.rb +55 -39
  24. data/lib/maruku/helpers.rb +156 -72
  25. data/lib/maruku/input/charsource.rb +319 -0
  26. data/lib/maruku/{html_helper.rb → input/html_helper.rb} +30 -9
  27. data/lib/maruku/input/linesource.rb +111 -0
  28. data/lib/maruku/input/parse_block.rb +562 -0
  29. data/lib/maruku/{parse_doc.rb → input/parse_doc.rb} +60 -28
  30. data/lib/maruku/{parse_span_better.rb → input/parse_span_better.rb} +226 -256
  31. data/lib/maruku/input/type_detection.rb +137 -0
  32. data/lib/maruku/maruku.rb +33 -0
  33. data/lib/maruku/{to_html.rb → output/to_html.rb} +151 -132
  34. data/lib/maruku/{to_latex.rb → output/to_latex.rb} +31 -35
  35. data/lib/maruku/{to_latex_entities.rb → output/to_latex_entities.rb} +25 -3
  36. data/lib/maruku/output/to_latex_strings.rb +64 -0
  37. data/lib/maruku/output/to_markdown.rb +164 -0
  38. data/lib/maruku/{to_s.rb → output/to_s.rb} +6 -0
  39. data/lib/maruku/string_utils.rb +12 -181
  40. data/lib/maruku/structures.rb +91 -67
  41. data/lib/maruku/structures_inspect.rb +78 -0
  42. data/lib/maruku/structures_iterators.rb +24 -2
  43. data/lib/maruku/tests/benchmark.rb +41 -9
  44. data/lib/maruku/tests/new_parser.rb +317 -286
  45. data/lib/maruku/tests/tests.rb +20 -0
  46. data/lib/maruku/toc.rb +64 -64
  47. data/lib/maruku/usage/example1.rb +33 -0
  48. data/lib/maruku/version.rb +8 -2
  49. data/tests/unittest/abbreviations.md +27 -16
  50. data/tests/unittest/attributes/attributes.md +89 -0
  51. data/tests/unittest/attributes/circular.md +51 -0
  52. data/tests/unittest/attributes/default.md +47 -0
  53. data/tests/unittest/blank.md +10 -6
  54. data/tests/unittest/blanks_in_code.md +26 -26
  55. data/tests/unittest/code.md +9 -9
  56. data/tests/unittest/code2.md +12 -13
  57. data/tests/unittest/code3.md +34 -34
  58. data/tests/unittest/easy.md +9 -7
  59. data/tests/unittest/email.md +9 -7
  60. data/tests/unittest/encoding/iso-8859-1.md +41 -4
  61. data/tests/unittest/encoding/utf-8.md +6 -5
  62. data/tests/unittest/entities.md +52 -80
  63. data/tests/unittest/escaping.md +47 -35
  64. data/tests/unittest/extra_dl.md +19 -29
  65. data/tests/unittest/extra_header_id.md +31 -24
  66. data/tests/unittest/extra_table1.md +14 -32
  67. data/tests/unittest/footnotes.md +58 -42
  68. data/tests/unittest/headers.md +11 -11
  69. data/tests/unittest/hrule.md +14 -24
  70. data/tests/unittest/images.md +41 -26
  71. data/tests/unittest/inline_html.md +104 -56
  72. data/tests/unittest/inline_html2.md +38 -0
  73. data/tests/unittest/links.md +74 -33
  74. data/tests/unittest/list1.md +18 -15
  75. data/tests/unittest/list2.md +31 -13
  76. data/tests/unittest/list3.md +29 -28
  77. data/tests/unittest/list4.md +103 -12
  78. data/tests/unittest/lists.md +86 -53
  79. data/tests/unittest/lists6.md +53 -0
  80. data/tests/unittest/lists7.md +31 -0
  81. data/tests/unittest/lists_after_paragraph.md +105 -71
  82. data/tests/unittest/lists_ol.md +149 -73
  83. data/tests/unittest/misc_sw.md +366 -326
  84. data/tests/unittest/notyet/escape.md +10 -10
  85. data/tests/unittest/notyet/header_after_par.md +20 -14
  86. data/tests/unittest/notyet/ticks.md +8 -35
  87. data/tests/unittest/notyet/triggering.md +72 -45
  88. data/tests/unittest/olist.md +78 -0
  89. data/tests/unittest/one.md +5 -3
  90. data/tests/unittest/paragraph.md +5 -3
  91. data/tests/unittest/paragraph_rules/dont_merge_ref.md +15 -9
  92. data/tests/unittest/paragraph_rules/tab_is_blank.md +9 -5
  93. data/tests/unittest/paragraphs.md +21 -26
  94. data/tests/unittest/recover/recover_links.md +6 -5
  95. data/tests/unittest/references/long_example.md +39 -30
  96. data/tests/unittest/references/spaces_and_numbers.md +2 -2
  97. data/tests/unittest/syntax_hl.md +33 -31
  98. data/tests/unittest/test.md +4 -6
  99. data/tests/unittest/wrapping.md +43 -26
  100. metadata +160 -139
  101. data/docs/markdown_extra2.html +0 -87
  102. data/docs/markdown_extra2.md +0 -83
  103. data/docs/markdown_syntax_2.html +0 -152
  104. data/lib/maruku/parse_block.rb +0 -564
  105. data/lib/maruku/parse_span.rb +0 -451
  106. data/lib/maruku/to_latex_strings.rb +0 -59
  107. data/lib/maruku/to_markdown.rb +0 -110
  108. data/lib/test.rb +0 -29
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: maruku
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2007-01-03
6
+ version: 0.4.0
7
+ date: 2007-01-06 00:00:00 +01:00
8
8
  summary: A Markdown interpreter in Ruby
9
9
  require_paths:
10
- - lib
10
+ - lib
11
11
  email: andrea@rubyforge.org
12
12
  homepage: http://maruku.rubyforge.org
13
13
  rubyforge_project:
@@ -18,149 +18,170 @@ bindir: bin
18
18
  has_rdoc: false
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
- -
22
- - ">"
23
- - !ruby/object:Gem::Version
24
- version: 0.0.0
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
25
24
  version:
26
25
  platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
27
29
  authors:
28
- - Andrea Censi
30
+ - Andrea Censi
29
31
  files:
30
- - lib/maruku.rb
31
- - lib/test.rb
32
- - lib/maruku/errors_management.rb
33
- - lib/maruku/helpers.rb
34
- - lib/maruku/html_helper.rb
35
- - lib/maruku/parse_block.rb
36
- - lib/maruku/parse_doc.rb
37
- - lib/maruku/parse_span.rb
38
- - lib/maruku/parse_span_better.rb
39
- - lib/maruku/string_utils.rb
40
- - lib/maruku/structures.rb
41
- - lib/maruku/structures_iterators.rb
42
- - lib/maruku/to_html.rb
43
- - lib/maruku/to_latex.rb
44
- - lib/maruku/to_latex_entities.rb
45
- - lib/maruku/to_latex_strings.rb
46
- - lib/maruku/to_markdown.rb
47
- - lib/maruku/to_s.rb
48
- - lib/maruku/toc.rb
49
- - lib/maruku/version.rb
50
- - lib/maruku/tests/benchmark.rb
51
- - lib/maruku/tests/new_parser.rb
52
- - lib/maruku/tests/tests.rb
53
- - docs/changelog-0.3.md
54
- - docs/faq.md
55
- - docs/markdown_extra2.md
56
- - docs/markdown_syntax.md
57
- - docs/maruku.md
58
- - docs/proposal.md
59
- - docs/todo.md
60
- - docs/changelog-0.3.html
61
- - docs/faq.html
62
- - docs/index.html
63
- - docs/markdown_extra2.html
64
- - docs/markdown_syntax.html
65
- - docs/markdown_syntax_2.html
66
- - docs/maruku.html
67
- - docs/proposal.html
68
- - docs/todo.html
69
- - tests/bugs/code_in_links.md
70
- - tests/bugs/complex_escaping.md
71
- - tests/others/abbreviations.md
72
- - tests/others/blank.md
73
- - tests/others/code.md
74
- - tests/others/code2.md
75
- - tests/others/code3.md
76
- - tests/others/email.md
77
- - tests/others/entities.md
78
- - tests/others/escaping.md
79
- - tests/others/extra_dl.md
80
- - tests/others/extra_header_id.md
81
- - tests/others/extra_table1.md
82
- - tests/others/footnotes.md
83
- - tests/others/headers.md
84
- - tests/others/hrule.md
85
- - tests/others/images.md
86
- - tests/others/inline_html.md
87
- - tests/others/links.md
88
- - tests/others/list1.md
89
- - tests/others/list2.md
90
- - tests/others/list3.md
91
- - tests/others/lists.md
92
- - tests/others/lists_after_paragraph.md
93
- - tests/others/lists_ol.md
94
- - tests/others/misc_sw.md
95
- - tests/others/one.md
96
- - tests/others/paragraphs.md
97
- - tests/others/sss06.md
98
- - tests/others/test.md
99
- - tests/unittest/abbreviations.md
100
- - tests/unittest/blank.md
101
- - tests/unittest/blanks_in_code.md
102
- - tests/unittest/code.md
103
- - tests/unittest/code2.md
104
- - tests/unittest/code3.md
105
- - tests/unittest/easy.md
106
- - tests/unittest/email.md
107
- - tests/unittest/entities.md
108
- - tests/unittest/escaping.md
109
- - tests/unittest/extra_dl.md
110
- - tests/unittest/extra_header_id.md
111
- - tests/unittest/extra_table1.md
112
- - tests/unittest/footnotes.md
113
- - tests/unittest/headers.md
114
- - tests/unittest/hrule.md
115
- - tests/unittest/images.md
116
- - tests/unittest/inline_html.md
117
- - tests/unittest/links.md
118
- - tests/unittest/list1.md
119
- - tests/unittest/list2.md
120
- - tests/unittest/list3.md
121
- - tests/unittest/list4.md
122
- - tests/unittest/lists.md
123
- - tests/unittest/lists_after_paragraph.md
124
- - tests/unittest/lists_ol.md
125
- - tests/unittest/misc_sw.md
126
- - tests/unittest/one.md
127
- - tests/unittest/paragraph.md
128
- - tests/unittest/paragraphs.md
129
- - tests/unittest/syntax_hl.md
130
- - tests/unittest/test.md
131
- - tests/unittest/wrapping.md
132
- - tests/unittest/encoding/iso-8859-1.md
133
- - tests/unittest/encoding/utf-8.md
134
- - tests/unittest/notyet/escape.md
135
- - tests/unittest/notyet/header_after_par.md
136
- - tests/unittest/notyet/ticks.md
137
- - tests/unittest/notyet/triggering.md
138
- - tests/unittest/paragraph_rules/dont_merge_ref.md
139
- - tests/unittest/paragraph_rules/tab_is_blank.md
140
- - tests/unittest/recover/recover_links.md
141
- - tests/unittest/references/long_example.md
142
- - tests/unittest/references/spaces_and_numbers.md
143
- - tests/utf8-files/simple.md
144
- - bin/maruku
145
- - bin/maruku0.3
146
- - bin/marutest
147
- - bin/marutex
32
+ - lib/maruku.rb
33
+ - lib/maruku/attributes.rb
34
+ - lib/maruku/defaults.rb
35
+ - lib/maruku/errors_management.rb
36
+ - lib/maruku/helpers.rb
37
+ - lib/maruku/maruku.rb
38
+ - lib/maruku/string_utils.rb
39
+ - lib/maruku/structures.rb
40
+ - lib/maruku/structures_inspect.rb
41
+ - lib/maruku/structures_iterators.rb
42
+ - lib/maruku/toc.rb
43
+ - lib/maruku/version.rb
44
+ - lib/maruku/input/charsource.rb
45
+ - lib/maruku/input/html_helper.rb
46
+ - lib/maruku/input/linesource.rb
47
+ - lib/maruku/input/parse_block.rb
48
+ - lib/maruku/input/parse_doc.rb
49
+ - lib/maruku/input/parse_span_better.rb
50
+ - lib/maruku/input/type_detection.rb
51
+ - lib/maruku/output/to_html.rb
52
+ - lib/maruku/output/to_latex.rb
53
+ - lib/maruku/output/to_latex_entities.rb
54
+ - lib/maruku/output/to_latex_strings.rb
55
+ - lib/maruku/output/to_markdown.rb
56
+ - lib/maruku/output/to_s.rb
57
+ - lib/maruku/tests/benchmark.rb
58
+ - lib/maruku/tests/new_parser.rb
59
+ - lib/maruku/tests/tests.rb
60
+ - lib/maruku/usage/example1.rb
61
+ - docs/changelog-0.2.13.md
62
+ - docs/changelog-0.3.md
63
+ - docs/faq.md
64
+ - docs/hidden_o_n_squared.md
65
+ - docs/markdown_syntax.md
66
+ - docs/maruku.md
67
+ - docs/proposal.md
68
+ - docs/todo.md
69
+ - docs/TOFIX.md
70
+ - docs/changelog-0.2.13.html
71
+ - docs/changelog-0.3.html
72
+ - docs/faq.html
73
+ - docs/index.html
74
+ - docs/markdown_syntax.html
75
+ - docs/maruku.html
76
+ - docs/proposal.html
77
+ - docs/todo.html
78
+ - docs/TOFIX.html
79
+ - tests/bugs/code_in_links.md
80
+ - tests/bugs/complex_escaping.md
81
+ - tests/others/abbreviations.md
82
+ - tests/others/blank.md
83
+ - tests/others/code.md
84
+ - tests/others/code2.md
85
+ - tests/others/code3.md
86
+ - tests/others/email.md
87
+ - tests/others/entities.md
88
+ - tests/others/escaping.md
89
+ - tests/others/extra_dl.md
90
+ - tests/others/extra_header_id.md
91
+ - tests/others/extra_table1.md
92
+ - tests/others/footnotes.md
93
+ - tests/others/headers.md
94
+ - tests/others/hrule.md
95
+ - tests/others/images.md
96
+ - tests/others/inline_html.md
97
+ - tests/others/links.md
98
+ - tests/others/list1.md
99
+ - tests/others/list2.md
100
+ - tests/others/list3.md
101
+ - tests/others/lists.md
102
+ - tests/others/lists_after_paragraph.md
103
+ - tests/others/lists_ol.md
104
+ - tests/others/misc_sw.md
105
+ - tests/others/one.md
106
+ - tests/others/paragraphs.md
107
+ - tests/others/sss06.md
108
+ - tests/others/test.md
109
+ - tests/unittest/abbreviations.md
110
+ - tests/unittest/blank.md
111
+ - tests/unittest/blanks_in_code.md
112
+ - tests/unittest/code.md
113
+ - tests/unittest/code2.md
114
+ - tests/unittest/code3.md
115
+ - tests/unittest/easy.md
116
+ - tests/unittest/email.md
117
+ - tests/unittest/entities.md
118
+ - tests/unittest/escaping.md
119
+ - tests/unittest/extra_dl.md
120
+ - tests/unittest/extra_header_id.md
121
+ - tests/unittest/extra_table1.md
122
+ - tests/unittest/footnotes.md
123
+ - tests/unittest/headers.md
124
+ - tests/unittest/hrule.md
125
+ - tests/unittest/images.md
126
+ - tests/unittest/inline_html.md
127
+ - tests/unittest/inline_html2.md
128
+ - tests/unittest/links.md
129
+ - tests/unittest/list1.md
130
+ - tests/unittest/list2.md
131
+ - tests/unittest/list3.md
132
+ - tests/unittest/list4.md
133
+ - tests/unittest/lists.md
134
+ - tests/unittest/lists6.md
135
+ - tests/unittest/lists7.md
136
+ - tests/unittest/lists_after_paragraph.md
137
+ - tests/unittest/lists_ol.md
138
+ - tests/unittest/misc_sw.md
139
+ - tests/unittest/olist.md
140
+ - tests/unittest/one.md
141
+ - tests/unittest/paragraph.md
142
+ - tests/unittest/paragraphs.md
143
+ - tests/unittest/syntax_hl.md
144
+ - tests/unittest/test.md
145
+ - tests/unittest/wrapping.md
146
+ - tests/unittest/attributes/attributes.md
147
+ - tests/unittest/attributes/circular.md
148
+ - tests/unittest/attributes/default.md
149
+ - tests/unittest/encoding/iso-8859-1.md
150
+ - tests/unittest/encoding/utf-8.md
151
+ - tests/unittest/notyet/escape.md
152
+ - tests/unittest/notyet/header_after_par.md
153
+ - tests/unittest/notyet/ticks.md
154
+ - tests/unittest/notyet/triggering.md
155
+ - tests/unittest/paragraph_rules/dont_merge_ref.md
156
+ - tests/unittest/paragraph_rules/tab_is_blank.md
157
+ - tests/unittest/recover/recover_links.md
158
+ - tests/unittest/references/long_example.md
159
+ - tests/unittest/references/spaces_and_numbers.md
160
+ - tests/utf8-files/simple.md
161
+ - bin/marudown
162
+ - bin/maruku
163
+ - bin/marutest
164
+ - bin/marutex
148
165
  test_files: []
166
+
149
167
  rdoc_options: []
168
+
150
169
  extra_rdoc_files: []
170
+
151
171
  executables:
152
- - maruku
153
- - marutex
172
+ - maruku
173
+ - marutex
154
174
  extensions: []
175
+
155
176
  requirements: []
177
+
156
178
  dependencies:
157
- - !ruby/object:Gem::Dependency
158
- name: syntax
159
- version_requirement:
160
- version_requirements: !ruby/object:Gem::Version::Requirement
161
- requirements:
162
- -
163
- - ">="
164
- - !ruby/object:Gem::Version
165
- version: 1.0.0
166
- version:
179
+ - !ruby/object:Gem::Dependency
180
+ name: syntax
181
+ version_requirement:
182
+ version_requirements: !ruby/object:Gem::Version::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 1.0.0
187
+ version:
@@ -1,87 +0,0 @@
1
- <?xml version='1.0' encoding='utf-8'?>
2
- <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3
- 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
- <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
5
- <head>
6
- <title></title>
7
-
8
- <link href='style.css' rel='stylesheet' type='text/css' />
9
- </head>
10
- <body>
11
- <h2 id='syntax_for_metadata'>Syntax for meta-data</h2>
12
-
13
- <h3 id='shortcuts'>Shortcuts</h3>
14
-
15
- <p>One sure thing is that in attributes list <code>#myid</code> is a shortcut for <code>id: myid</code> and <code>.myclass</code> is a shortcut for <code>class: myclass</code>.</p>
16
-
17
- <h3 id='metadata_for_headers'>Meta-data for headers</h3>
18
-
19
- <p>For headers, you want to put metadata in the <code>{}</code> on the same line:</p>
20
-
21
- <pre><code>### Header ### {#myid}
22
-
23
- Header {#myid .myclass}
24
- ------
25
- </code></pre>
26
-
27
- <h3 id='metadata_for_blocklevel_elements'>Meta-data for block-level elements</h3>
28
-
29
- <p>For paragraphs and other block-level elements, you want to put the <code>{}</code> on the line below:</p>
30
-
31
- <pre><code>This is a paragraph.
32
- Line 2 of the paragraph.
33
-
34
- {#myid .myclass}
35
-
36
- A quote with a citation url:
37
- &gt; Who said that?
38
- {cite=google.com}
39
- </code></pre>
40
-
41
- <h3 id='metadata_for_spanlevel_elements'>Meta-data for span-level elements</h3>
42
-
43
- <p>Moreover, you want to use a similar syntax for span-level elements. For example, in this:</p>
44
-
45
- <pre><code>This is a paragraph. *chunky*{#id1}
46
- {#id2}</code></pre>
47
-
48
- <p>you are setting the id attribute to the <code>em</code> element to <code>id1</code> and the id of the paragraph to <code>id2</code>.</p>
49
-
50
- <p>This works also for links, like this:</p>
51
-
52
- <pre><code>This is [a link][ref]{#myid rel=abc rev=abc}
53
- </code></pre>
54
-
55
- <p>For images, it should be that </p>
56
-
57
- <pre><code>This is ![Alt text](url &quot;fresh carrots&quot;)
58
- </code></pre>
59
-
60
- <p>is equivalent to</p>
61
-
62
- <pre><code>This is ![Alt text](url){title=&quot;fresh carrots&quot;}
63
- </code></pre>
64
-
65
- <h3 id='using_references'>Using references</h3>
66
-
67
- <p>Then, it is possible to use references: <code>{&lt;number&gt;}</code> is threated as a reference (it is not ambiguous as attribute names cannot start with digits) and one can write:</p>
68
-
69
- <pre><code>### My header ### {1}
70
- This is a paragraph with
71
- para para para
72
- {2}
73
-
74
- {1}: #header-id
75
- {2}: #paragraph-id</code></pre>
76
-
77
- <p>which is equivalent to:</p>
78
-
79
- <pre><code>### My header ### {#header-id}
80
- This is a paragraph with
81
- para para para
82
- {#paragraph-id}</code></pre>
83
-
84
- <div class='maruku_signature'>
85
- <hr />
86
- <span style='font-size: small; font-style: italic'>Created by <a href='http://maruku.rubyforge.org' title='Maruku: a Markdown interpreter'>Maruku</a> at 00:21 on Wednesday, January 03rd, 2007.</span></div>
87
- </body></html>
@@ -1,83 +0,0 @@
1
- CSS: style.css
2
- LaTeX_use_listings: true
3
- html_use_syntax: true
4
-
5
- Syntax for meta-data
6
- --------------------
7
-
8
- ### Shortcuts ###
9
-
10
- One sure thing is that in attributes list `#myid` is a shortcut
11
- for `id: myid` and `.myclass` is a shortcut for `class: myclass`.
12
-
13
- ### Meta-data for headers ###
14
-
15
- For headers, you want to put metadata in the `{}` on the same line:
16
-
17
- ### Header ### {#myid}
18
-
19
- Header {#myid .myclass}
20
- ------
21
-
22
- ### Meta-data for block-level elements ###
23
-
24
- For paragraphs and other block-level elements, you want to put
25
- the `{}` on the line below:
26
-
27
- This is a paragraph.
28
- Line 2 of the paragraph.
29
-
30
- {#myid .myclass}
31
-
32
- A quote with a citation url:
33
- > Who said that?
34
- {cite=google.com}
35
-
36
- ### Meta-data for span-level elements ###
37
-
38
- Moreover, you want to use a similar syntax for span-level elements.
39
- For example, in this:
40
-
41
- This is a paragraph. *chunky*{#id1}
42
- {#id2}
43
-
44
- you are setting the id attribute to the `em` element to `id1`
45
- and the id of the paragraph to `id2`.
46
-
47
- This works also for links, like this:
48
-
49
- This is [a link][ref]{#myid rel=abc rev=abc}
50
-
51
- For images, it should be that
52
-
53
- This is ![Alt text](url "fresh carrots")
54
-
55
- is equivalent to
56
-
57
- This is ![Alt text](url){title="fresh carrots"}
58
-
59
- ### Using references ###
60
-
61
- Then, it is possible to use references: `{<number>}` is threated
62
- as a reference (it is not ambiguous as attribute names cannot start
63
- with digits) and one can write:
64
-
65
- ### My header ### {1}
66
- This is a paragraph with
67
- para para para
68
- {2}
69
-
70
- {1}: #header-id
71
- {2}: #paragraph-id
72
-
73
- which is equivalent to:
74
-
75
- ### My header ### {#header-id}
76
- This is a paragraph with
77
- para para para
78
- {#paragraph-id}
79
-
80
-
81
-
82
-
83
-