Fix for delta values reported by vFW vLB
[demo.git] / vnfs / VES5.0 / doxygen-1.8.12 / html / markdown.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.12"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>Doxygen: Markdown support</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="navtree.css" rel="stylesheet" type="text/css"/>
13 <script type="text/javascript" src="resize.js"></script>
14 <script type="text/javascript" src="navtreedata.js"></script>
15 <script type="text/javascript" src="navtree.js"></script>
16 <script type="text/javascript">
17   $(document).ready(initResizable);
18 </script>
19 <link href="doxygen_manual.css" rel="stylesheet" type="text/css" />
20 </head>
21 <body>
22 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
23 <div id="titlearea">
24 <table cellspacing="0" cellpadding="0">
25  <tbody>
26  <tr style="height: 56px;">
27   <td id="projectalign" style="padding-left: 0.5em;">
28    <div id="projectname">Doxygen
29    </div>
30   </td>
31  </tr>
32  </tbody>
33 </table>
34 </div>
35 <!-- end header part -->
36 <!-- Generated by Doxygen 1.8.12 -->
37 </div><!-- top -->
38 <div id="side-nav" class="ui-resizable side-nav-resizable">
39   <div id="nav-tree">
40     <div id="nav-tree-contents">
41       <div id="nav-sync" class="sync"></div>
42     </div>
43   </div>
44   <div id="splitbar" style="-moz-user-select:none;" 
45        class="ui-resizable-handle">
46   </div>
47 </div>
48 <script type="text/javascript">
49 $(document).ready(function(){initNavTree('markdown.html','');});
50 </script>
51 <div id="doc-content">
52 <div class="header">
53   <div class="headertitle">
54 <div class="title">Markdown support </div>  </div>
55 </div><!--header-->
56 <div class="contents">
57 <div class="toc"><h3>Table of Contents</h3>
58 <ul><li class="level1"><a href="#markdown_std">Standard Markdown</a><ul><li class="level2"><a href="#md_para">Paragraphs</a></li>
59 <li class="level2"><a href="#md_headers">Headers</a></li>
60 <li class="level2"><a href="#md_blockquotes">Block quotes</a></li>
61 <li class="level2"><a href="#md_lists">Lists</a></li>
62 <li class="level2"><a href="#md_codeblock">Code Blocks</a></li>
63 <li class="level2"><a href="#md_rulers">Horizontal Rulers</a></li>
64 <li class="level2"><a href="#md_emphasis">Emphasis</a></li>
65 <li class="level2"><a href="#md_codespan">code spans</a></li>
66 <li class="level2"><a href="#md_links">Links</a><ul><li class="level3"><a href="#md_inlinelinks">Inline Links</a></li>
67 <li class="level3"><a href="#md_reflinks">Reference Links</a></li>
68 </ul>
69 </li>
70 <li class="level2"><a href="#md_images">Images</a></li>
71 <li class="level2"><a href="#md_autolink">Automatic Linking</a></li>
72 </ul>
73 </li>
74 <li class="level1"><a href="#markdown_extra">Markdown Extensions</a><ul><li class="level2"><a href="#md_toc">Table of Contents</a></li>
75 <li class="level2"><a href="#md_tables">Tables</a></li>
76 <li class="level2"><a href="#md_fenced">Fenced Code Blocks</a></li>
77 <li class="level2"><a href="#md_header_id">Header Id Attributes</a></li>
78 </ul>
79 </li>
80 <li class="level1"><a href="#markdown_dox">Doxygen specifics</a><ul><li class="level2"><a href="#md_page_header">Including Markdown files as pages</a></li>
81 <li class="level2"><a href="#md_html_blocks">Treatment of HTML blocks</a></li>
82 <li class="level2"><a href="#mddox_code_blocks">Code Block Indentation</a></li>
83 <li class="level2"><a href="#mddox_emph_spans">Emphasis limits</a></li>
84 <li class="level2"><a href="#mddox_code_spans">Code Spans Limits</a></li>
85 <li class="level2"><a href="#mddox_lists">Lists Extensions</a></li>
86 <li class="level2"><a href="#mddox_stars">Use of asterisks</a></li>
87 <li class="level2"><a href="#mddox_limits">Limits on markup scope</a></li>
88 </ul>
89 </li>
90 <li class="level1"><a href="#markdown_debug">Debugging of problems</a></li>
91 </ul>
92 </div>
93 <div class="textblock"><p><a href="http://daringfireball.net/projects/markdown">Markdown</a> support was introduced in doxygen version 1.8.0. It is a plain text formatting syntax written by John Gruber, with the following underlying design goal:</p>
94 <blockquote class="doxtable">
95 <p>The design goal for Markdown's formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions. While Markdown's syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown's syntax is the format of plain text email. </p>
96 </blockquote>
97 <p>In the <a class="el" href="markdown.html#markdown_std">next section</a> the standard Markdown features are briefly discussed. The reader is referred to the <a href="http://daringfireball.net/projects/markdown">Markdown site</a> for more details.</p>
98 <p>Some enhancements were made, for instance <a href="http://michelf.com/projects/php-markdown/extra/">PHP Markdown Extra</a>, and <a href="http://github.github.com/github-flavored-markdown/">GitHub flavored Markdown</a>. The section <a class="el" href="markdown.html#markdown_extra">Markdown Extensions</a> discusses the extensions that doxygen supports.</p>
99 <p>Finally section <a class="el" href="markdown.html#markdown_dox">Doxygen specifics</a> discusses some specifics for doxygen's implementation of the Markdown standard.</p>
100 <h1><a class="anchor" id="markdown_std"></a>
101 Standard Markdown</h1>
102 <h2><a class="anchor" id="md_para"></a>
103 Paragraphs</h2>
104 <p>Even before doxygen had Markdown support it supported the same way of paragraph handling as Markdown: to make a paragraph you just separate consecutive lines of text by one or more blank lines.</p>
105 <p>An example: </p><pre class="fragment">Here is text for one paragraph.
106
107 We continue with more text in another paragraph.
108 </pre><h2><a class="anchor" id="md_headers"></a>
109 Headers</h2>
110 <p>Just like Markdown, doxygen supports two types of headers</p>
111 <p>Level 1 or 2 headers can be made as the follows </p><pre class="fragment">This is a level 1 header
112 ========================
113
114 This is a level 2 header
115 ------------------------
116 </pre><p>A header is followed by a line containing only ='s or -'s. Note that the exact amount of ='s or -'s is not important as long as there are at least two.</p>
117 <p>Alternatively, you can use #'s at the start of a line to make a header. The number of #'s at the start of the line determines the level (up to 6 levels are supported). You can end a header by any number of #'s.</p>
118 <p>Here is an example: </p><pre class="fragment"># This is a level 1 header
119
120 ### This is level 3 header #######
121 </pre><h2><a class="anchor" id="md_blockquotes"></a>
122 Block quotes</h2>
123 <p>Block quotes can be created by starting each line with one or more &gt;'s, similar to what is used in text-only emails. </p><pre class="fragment">&gt; This is a block quote
124 &gt; spanning multiple lines
125 </pre><p>Lists and code blocks (see below) can appear inside a quote block. Quote blocks can also be nested.</p>
126 <p>Note that doxygen requires that you put a space after the (last) &gt; character to avoid false positives, i.e. when writing </p><pre class="fragment">0  if OK\n
127 &gt;1 if NOK
128 </pre><p>the second line will not be seen as a block quote.</p>
129 <h2><a class="anchor" id="md_lists"></a>
130 Lists</h2>
131 <p>Simple bullet lists can be made by starting a line with -, +, or *. </p><pre class="fragment">- Item 1
132
133   More text for this item.
134
135 - Item 2
136   + nested list item.
137   + another nested item.
138 - Item 3
139 </pre><p>List items can span multiple paragraphs (if each paragraph starts with the proper indentation) and lists can be nested. You can also make a numbered list like so </p><pre class="fragment">1. First item.
140 2. Second item.
141 </pre><p>Make sure to also read <a class="el" href="markdown.html#mddox_lists">Lists Extensions</a> for doxygen specifics.</p>
142 <h2><a class="anchor" id="md_codeblock"></a>
143 Code Blocks</h2>
144 <p>Preformatted verbatim blocks can be created by indenting each line in a block of text by at least 4 extra spaces </p><pre class="fragment">This a normal paragraph
145
146     This is a code block
147
148 We continue with a normal paragraph again.
149 </pre><p>Doxygen will remove the mandatory indentation from the code block. Note that you cannot start a code block in the middle of a paragraph (i.e. the line preceding the code block must be empty).</p>
150 <p>See section <a class="el" href="markdown.html#mddox_code_blocks">Code Block Indentation</a> for more info how doxygen handles indentation as this is slightly different than standard Markdown.</p>
151 <h2><a class="anchor" id="md_rulers"></a>
152 Horizontal Rulers</h2>
153 <p>A horizontal ruler will be produced for lines containing at least three or more hyphens, asterisks, or underscores. The line may also include any amount of whitespace.</p>
154 <p>Examples: </p><pre class="fragment">- - -
155 ______
156 </pre><p>Note that using asterisks in comment blocks does not work. See <a class="el" href="markdown.html#mddox_stars">Use of asterisks</a> for details.</p>
157 <h2><a class="anchor" id="md_emphasis"></a>
158 Emphasis</h2>
159 <p>To emphasize a text fragment you start and end the fragment with an underscore or star. Using two stars or underscores will produce strong emphasis.</p>
160 <p>Examples: </p><pre class="fragment"> single asterisks*
161
162 _single underscores_
163
164   double asterisks**
165
166 __double underscores__
167 </pre><p>See section <a class="el" href="markdown.html#mddox_emph_spans">Emphasis limits</a> for more info how doxygen handles emphasis spans slightly different than standard Markdown.</p>
168 <h2><a class="anchor" id="md_codespan"></a>
169 code spans</h2>
170 <p>To indicate a span of code, you should wrap it in backticks (`). Unlike code blocks, code spans appear inline in a paragraph. An example: </p><pre class="fragment">Use the `printf()` function.
171 </pre><p>To show a literal backtick inside a code span use double backticks, i.e. </p><pre class="fragment">To assign the output of command `ls` to `var` use ``var=`ls```.
172 </pre><p>See section <a class="el" href="markdown.html#mddox_code_spans">Code Spans Limits</a> for more info how doxygen handles code spans slightly different than standard Markdown.</p>
173 <h2><a class="anchor" id="md_links"></a>
174 Links</h2>
175 <p>Doxygen supports both styles of make links defined by Markdown: <em>inline</em> and <em>reference</em>.</p>
176 <p>For both styles the link definition starts with the link text delimited by [square brackets].</p>
177 <h3><a class="anchor" id="md_inlinelinks"></a>
178 Inline Links</h3>
179 <p>For an inline link the link text is followed by a URL and an optional link title which together are enclosed in a set of regular parenthesis. The link title itself is surrounded by quotes.</p>
180 <p>Examples: </p><pre class="fragment">[The link text](http://example.net/)
181 [The link text](http://example.net/ "Link title")
182 [The link text](/relative/path/to/index.html "Link title") 
183 [The link text](somefile.html) 
184 </pre><p>In addition doxygen provides a similar way to link a documented entity: </p><pre class="fragment">[The link text](@ref MyClass) 
185 </pre><h3><a class="anchor" id="md_reflinks"></a>
186 Reference Links</h3>
187 <p>Instead of putting the URL inline, you can also define the link separately and then refer to it from within the text.</p>
188 <p>The link definition looks as follows: </p><pre class="fragment">[link name]: http://www.example.com "Optional title"
189 </pre><p>Instead of double quotes also single quotes or parenthesis can be used for the title part.</p>
190 <p>Once defined, the link looks as follows </p><pre class="fragment">[link text][link name]
191 </pre><p>If the link text and name are the same, also </p><pre class="fragment">[link name][]
192 </pre><p>or even </p><pre class="fragment">[link name]
193 </pre><p>can be used to refer to the link. Note that the link name matching is not case sensitive as is shown in the following example: </p><pre class="fragment">I get 10 times more traffic from [Google] than from
194 [Yahoo] or [MSN].
195
196 [google]: http://google.com/        "Google"
197 [yahoo]:  http://search.yahoo.com/  "Yahoo Search"
198 [msn]:    http://search.msn.com/    "MSN Search"
199 </pre><p>Link definitions will not be visible in the output.</p>
200 <p>Like for inline links doxygen also supports @ref inside a link definition: </p><pre class="fragment">[myclass]: @ref MyClass "My class"
201 </pre><h2><a class="anchor" id="md_images"></a>
202 Images</h2>
203 <p>Markdown syntax for images is similar to that for links. The only difference is an additional ! before the link text.</p>
204 <p>Examples: </p><pre class="fragment">![Caption text](/path/to/img.jpg)
205 ![Caption text](/path/to/img.jpg "Image title")
206 ![Caption text][img def]
207 ![img def]
208
209 [img def]: /path/to/img.jpg "Optional Title"
210 </pre><p>Also here you can use @ref to link to an image: </p><pre class="fragment">![Caption text](@ref image.png)
211 ![img def]
212
213 [img def]: @ref image.png "Caption text"
214 </pre><p>The caption text is optional.</p>
215 <h2><a class="anchor" id="md_autolink"></a>
216 Automatic Linking</h2>
217 <p>To create a link to an URL or e-mail address Markdown supports the following syntax: </p><pre class="fragment">&lt;http://www.example.com&gt;
218 &lt;https://www.example.com&gt;
219 &lt;ftp://www.example.com&gt;
220 &lt;mailto:address@example.com&gt;
221 &lt;address@example.com&gt;
222 </pre><p>Note that doxygen will also produce the links without the angle brackets.</p>
223 <h1><a class="anchor" id="markdown_extra"></a>
224 Markdown Extensions</h1>
225 <h2><a class="anchor" id="md_toc"></a>
226 Table of Contents</h2>
227 <p>Doxygen supports a special link marker <code>[TOC]</code> which can be placed in a page to produce a table of contents at the start of the page, listing all sections.</p>
228 <p>Note that using <code>[TOC]</code> is the same as using a <a class="el" href="commands.html#cmdtableofcontents">\tableofcontents</a> command.</p>
229 <h2><a class="anchor" id="md_tables"></a>
230 Tables</h2>
231 <p>Of the features defined by "Markdown Extra" is support for <a href="http://michelf.com/projects/php-markdown/extra/#table">simple tables</a>:</p>
232 <p>A table consists of a header line, a separator line, and at least one row line. Table columns are separated by the pipe (|) character.</p>
233 <p>Here is an example: </p><pre class="fragment">First Header  | Second Header
234 ------------- | -------------
235 Content Cell  | Content Cell 
236 Content Cell  | Content Cell 
237 </pre><p>which will produce the following table:</p>
238 <table class="doxtable">
239 <tr>
240 <th>First Header </th><th>Second Header  </th></tr>
241 <tr>
242 <td>Content Cell </td><td>Content Cell </td></tr>
243 <tr>
244 <td>Content Cell </td><td>Content Cell </td></tr>
245 </table>
246 <p>Column alignment can be controlled via one or two colons at the header separator line: </p><pre class="fragment">| Right | Center | Left  |
247 | ----: | :----: | :---- |
248 | 10    | 10     | 10    |
249 | 1000  | 1000   | 1000  |
250 </pre><p>which will look as follows:</p>
251 <table class="doxtable">
252 <tr>
253 <th align="right">Right </th><th align="center">Center </th><th align="left">Left  </th></tr>
254 <tr>
255 <td align="right">10 </td><td align="center">10 </td><td align="left">10 </td></tr>
256 <tr>
257 <td align="right">1000 </td><td align="center">1000 </td><td align="left">1000 </td></tr>
258 </table>
259 <p>For more complex tables in doxygen please have a look at: <a class="el" href="tables.html">Including tables</a></p>
260 <h2><a class="anchor" id="md_fenced"></a>
261 Fenced Code Blocks</h2>
262 <p>Another feature defined by "Markdown Extra" is support for <a href="http://michelf.com/projects/php-markdown/extra/#fenced-code-blocks">fenced code blocks</a>:</p>
263 <p>A fenced code block does not require indentation, and is defined by a pair of "fence lines". Such a line consists of 3 or more tilde (~) characters on a line. The end of the block should have the same number of tildes. Here is an example:</p>
264 <pre class="fragment">This is a paragraph introducing:
265
266 ~~~~~~~~~~~~~~~~~~~~~
267 a one-line code block
268 ~~~~~~~~~~~~~~~~~~~~~
269 </pre><p>By default the output is the same as for a normal code block.</p>
270 <p>For languages supported by doxygen you can also make the code block appear with syntax highlighting. To do so you need to indicate the typical file extension that corresponds to the programming language after the opening fence. For highlighting according to the Python language for instance, you would need to write the following: </p><pre class="fragment">~~~~~~~~~~~~~{.py}
271 # A class
272 class Dummy:
273     pass
274 ~~~~~~~~~~~~~
275 </pre><p>which will produce: </p><div class="fragment"><div class="line"><span class="comment"># A class</span></div><div class="line"><span class="keyword">class </span>Dummy:</div><div class="line">    <span class="keywordflow">pass</span></div></div><!-- fragment --><p>and for C you would write: </p><pre class="fragment">~~~~~~~~~~~~~~~{.c}
276 int func(int a,int b) { return a*b; }
277 ~~~~~~~~~~~~~~~
278 </pre><p>which will produce:</p>
279 <div class="fragment"><div class="line"><span class="keywordtype">int</span> func(<span class="keywordtype">int</span> a,<span class="keywordtype">int</span> b) { <span class="keywordflow">return</span> a*b; }</div></div><!-- fragment --><p>The curly braces and dot are optional by the way.</p>
280 <p>Another way to denote fenced code blocks is to use 3 or more backticks (```): </p><pre class="fragment">```
281 also a fenced code block
282 ```
283 </pre><h2><a class="anchor" id="md_header_id"></a>
284 Header Id Attributes</h2>
285 <p>Standard Markdown has no support for labeling headers, which is a problem if you want to link to a section.</p>
286 <p>PHP Markdown Extra allows you to label a header by adding the following to the header </p><pre class="fragment">Header 1                {#labelid}
287 ========
288
289 ## Header 2 ##          {#labelid2}
290 </pre><p>To link to a section in the same comment block you can use </p><pre class="fragment">[Link text](#labelid)
291 </pre><p>to link to a section in general, doxygen allows you to use @ref </p><pre class="fragment">[Link text](@ref labelid)
292 </pre><p>Note this only works for the headers of level 1 to 4.</p>
293 <h1><a class="anchor" id="markdown_dox"></a>
294 Doxygen specifics</h1>
295 <p>Even though doxygen tries to following the Markdown standard as closely as possible, there are couple of deviation and doxygen specifics additions.</p>
296 <h2><a class="anchor" id="md_page_header"></a>
297 Including Markdown files as pages</h2>
298 <p>Doxygen can process files with Markdown formatting. For this to work the extension for such a file should be <code>.md</code> or <code>.markdown</code> (see <a class="el" href="config.html#cfg_extension_mapping">EXTENSION_MAPPING</a> if your Markdown files have a different extension, and use <code>md</code> as the name of the parser). Each file is converted to a page (see the <a class="el" href="commands.html#cmdpage">page</a> command for details).</p>
299 <p>By default the name and title of the page are derived from the file name. If the file starts with a level 1 header however, it is used as the title of the page. If you specify a label for the header (as shown in <a class="el" href="markdown.html#md_header_id">Header Id Attributes</a>) doxygen will use that as the page name.</p>
300 <p>If the label is called <code>index</code> or <code>mainpage</code> doxygen will put the documentation on the front page (<code>index.html</code>).</p>
301 <p>Here is an example of a file <code>README.md</code> that will appear as the main page when processed by doxygen: </p><pre class="fragment">My Main Page                         {#mainpage}
302 ============
303
304 Documentation that will appear on the main page
305 </pre><p>If a page has a label you can link to it using <a class="el" href="commands.html#cmdref">@ref</a> as is shown above. To refer to a markdown page without such label you can simple use the file name of the page, e.g. </p><pre class="fragment">See [the other page](other.md) for more info.
306 </pre><h2><a class="anchor" id="md_html_blocks"></a>
307 Treatment of HTML blocks</h2>
308 <p>Markdown is quite strict in the way it processes block-level HTML:</p>
309 <blockquote class="doxtable">
310 <p>block-level HTML elements — e.g. <code>&lt;div&gt;</code>, <code>&lt;table&gt;</code>, <code>&lt;pre&gt;</code>, <code>&lt;p&gt;</code>, etc. — must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces. </p>
311 </blockquote>
312 <p>Doxygen does not have this requirement, and will also process Markdown formatting inside such HTML blocks. The only exception is <code>&lt;pre&gt;</code> blocks, which are passed untouched (handy for ASCII art).</p>
313 <p>Doxygen will not process Markdown formatting inside verbatim or code blocks, and in other sections that need to be processed without changes (for instance formulas or inline dot graphs).</p>
314 <h2><a class="anchor" id="mddox_code_blocks"></a>
315 Code Block Indentation</h2>
316 <p>Markdown allows both a single tab or 4 spaces to start a code block. Since doxygen already replaces tabs by spaces before doing Markdown processing, the effect will only be same if TAB_SIZE in the config file has been set to 4. When it is set to a higher value spaces will be present in the code block. A lower value will prevent a single tab to be interpreted as the start of a code block.</p>
317 <p>With Markdown any block that is indented by 4 spaces (and 8 spaces inside lists) is treated as a code block. This indentation amount is absolute, i.e. counting from the start of the line.</p>
318 <p>Since doxygen comments can appear at any indentation level that is required by the programming language, it uses a relative indentation instead. The amount of indentation is counted relative to the preceding paragraph. In case there is no preceding paragraph (i.e. you want to start with a code block), the minimal amount of indentation of the whole comment block is used as a reference.</p>
319 <p>In most cases this difference does not result in different output. Only if you play with the indentation of paragraphs the difference is noticeable: </p><pre class="fragment">text
320
321  text
322
323   text
324
325    code
326 </pre><p>In this case Markdown will put the word code in a code block, whereas doxygen will treat it as normal text, since although the absolute indentation is 4, the indentation with respect to the previous paragraph is only 1.</p>
327 <p>Note that list markers are not counted when determining the relative indent: </p><pre class="fragment">1.  Item1
328
329     More text for item1
330
331 2.  Item2
332
333         Code block for item2
334 </pre><p>For Item1 the indentation is 4 (when treating the list marker as whitespace), so the next paragraph "More text..." starts at the same indentation level and is therefore not seen as a code block.</p>
335 <h2><a class="anchor" id="mddox_emph_spans"></a>
336 Emphasis limits</h2>
337 <p>Unlike standard Markdown, doxygen will not touch internal underscores or stars, so the following will appear as-is: </p><pre class="fragment">a_nice_identifier
338 </pre><p>Furthermore, a <code>*</code> or <code>_</code> only starts an emphasis if</p><ul>
339 <li>it is followed by an alphanumerical character, and</li>
340 <li>it is preceded by a space, newline, or one the following characters <code>&lt;{([,:;</code></li>
341 </ul>
342 <p>An emphasis ends if</p><ul>
343 <li>it is not followed by an alphanumerical character, and</li>
344 <li>it is not preceded by a space, newline, or one the following characters <code>({[&lt;=+-\@</code></li>
345 </ul>
346 <p>Lastly, the span of the emphasis is limited to a single paragraph.</p>
347 <h2><a class="anchor" id="mddox_code_spans"></a>
348 Code Spans Limits</h2>
349 <p>Note that unlike standard Markdown, doxygen leaves the following untouched. </p><pre class="fragment">A `cool' word in a `nice' sentence.
350 </pre><p>In other words; a single quote cancels the special treatment of a code span wrapped in a pair of backtick characters. This extra restriction was added for backward compatibility reasons.</p>
351 <h2><a class="anchor" id="mddox_lists"></a>
352 Lists Extensions</h2>
353 <p>With Markdown two lists separated by an empty line are joined together into a single list which can be rather unexpected and many people consider it to be a bug. Doxygen, however, will make two separate lists as you would expect.</p>
354 <p>Example: </p><pre class="fragment">- Item1 of list 1
355 - Item2 of list 1
356
357 1. Item1 of list 2
358 2. Item2 of list 2
359 </pre><p>With Markdown the actual numbers you use to mark the list have no effect on the HTML output Markdown produces. I.e. standard Markdown treats the following as one list with 3 numbered items: </p><pre class="fragment">1. Item1
360 1. Item2
361 1. Item3
362 </pre><p>Doxygen however requires that the numbers used as marks are in strictly ascending order, so the above example would produce 3 lists with one item. An item with an equal or lower number than the preceding item, will start a new list. For example: </p><pre class="fragment">1. Item1 of list 1
363 3. Item2 of list 1
364 2. Item1 of list 2
365 4. Item2 of list 2
366 </pre><p>will produce:</p>
367 <ol type="1">
368 <li>Item1 of list 1</li>
369 <li>Item2 of list 1</li>
370 </ol>
371 <ol type="1">
372 <li>Item1 of list 2</li>
373 <li>Item2 of list 2</li>
374 </ol>
375 <p>Historically doxygen has an additional way to create numbered lists by using <code>-#</code> markers: </p><pre class="fragment">-# item1
376 -# item2
377 </pre><h2><a class="anchor" id="mddox_stars"></a>
378 Use of asterisks</h2>
379 <p>Special care has to be taken when using *'s in a comment block to start a list or make a ruler.</p>
380 <p>Doxygen will strip off any leading *'s from the comment before doing Markdown processing. So although the following works fine</p>
381 <pre class="fragment">    /** A list:
382      *  * item1
383      *  * item2
384      */
385 </pre><p>When you remove the leading *'s doxygen will strip the other stars as well, making the list disappear!</p>
386 <p>Rulers created with *'s will not be visible at all. They only work in Markdown files.</p>
387 <h2><a class="anchor" id="mddox_limits"></a>
388 Limits on markup scope</h2>
389 <p>To avoid that a stray * or _ matches something many paragraphs later, and shows everything in between with emphasis, doxygen limits the scope of a * and _ to a single paragraph.</p>
390 <p>For a code span, between the starting and ending backtick only two new lines are allowed.</p>
391 <p>Also for links there are limits; the link text, and link title each can contain only one new line, the URL may not contain any newlines.</p>
392 <h1><a class="anchor" id="markdown_debug"></a>
393 Debugging of problems</h1>
394 <p>When doxygen parses the source code it first extracts the comments blocks, then passes these through the Markdown preprocessor. The output of the Markdown preprocessing consists of text with <a class="el" href="commands.html#cmd_intro">special commands</a> and <a class="el" href="htmlcmds.html">HTML commands</a>. A second pass takes the output of the Markdown preprocessor and converts it into the various output formats.</p>
395 <p>During Markdown preprocessing no errors are produced. Anything that does not fit the Markdown syntax is simply passed on as-is. In the subsequent parsing phase this could lead to errors, which may not always be obvious as they are based on the intermediate format.</p>
396 <p>To see the result after Markdown processing you can run doxygen with the <code>-d Markdown</code> option. It will then print each comment block before and after Markdown processing.</p>
397 <p> 
398 Go to the <a href="lists.html">next</a> section or return to the
399  <a href="index.html">index</a>.
400  </p>
401 </div></div><!-- contents -->
402 </div><!-- doc-content -->
403 <!-- start footer part -->
404 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
405   <ul>
406     <li class="footer">Generated by
407     <a href="http://www.doxygen.org/index.html">
408     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
409   </ul>
410 </div>
411 </body>
412 </html>