Beruflich Dokumente
Kultur Dokumente
###Document Structure###
```php
<?php
$I = new FunctionalTester($scenario);
$I->amOnPage('/');
$I->see('Hello');
$I->seeInDatabase('users', array('id' => 1));
$I->seeFileFound('running.lock');
?>
```
Markdown is a limited set of plain text markup that translates to the HTML tags you
use in writing content for the web (as opposed to use in laying out a web page).
There are a lot of elements for which there is no Markdown markup, e.g., tables.
This is, however, not a serious problem as Markdown will accept HTML code within
the document and simply pass it through when the markup is converted to HTML. The
original Markdown is a Perl script available from the author John Grubers Daring
Fireball site. The script processes the markup to produce a snippet of HTML
suitable for inserting into the code for a web page.
Document Structure
Heading H1
==========
is converted to the following HTML when processed through the Markdown script or
the Markdown generator in ResophNotes:
<h1>Heading H1</h1>
Note that the number of underline characters is irrelevant; even one will work. The
second way to markup headings is by inserting one to six #s before the heading
text. Thus, this markup:
#### Heading H4
is converted to:
<h4>Heading H4</h4>
If it pleases your eye better, you can close the hash marks like this:
Horizontal rules are inserted in the source text using three or more *s or -s on a
line by themselves. The *s or -s may be separated by spaces. For example, each of
the lines of markup below is converted to <hr />:
- - - - - - - - - - - - -
--------
***
Manual line breaks are inserted by ending a line of text with two or more spaces,
which are converted to <br />.
Blockquotes are marked up as quoted messages are in e-mail, with a leading > on the
line. This markup:
Using the single >, however, does not display well in the source text. For the
source text, it is better to use a hard return at the end of each line and place a
> before each one, like this:
Text Formatting
The only text formatting markup is for italic and bold. Standard Markdown markup
calls for a string of text to be wrapped in single symbols, either _ or *, to
produce italic or double symbols to produce bold. Thus, either:
_italic_ or *italic*
is converted to:
<em>italic</em>
and:
__bold__ or **bold**
is converted to:
<strong>bold</strong>
Lists
<ul>
<li>First list item in unordered list</li>
<li><p>Second list item in unordered list</p>
<ul>
<li><p>First list item in nested unordered list</p>
<p>Second paragraph of the first list item in the
nested list.</p></li>
<li><p>Second list item in next unordered list</p></li>
</ul></li>
Ordered lists are marked up by including a number followed by a period as the first
characters on a line. Again, the 3-space max indent holds. The order of the numbers
in source text does not matter, although the author of Markdown suggests beginning
with 1., just in case Markdown ever allows numbering beginning with other than 1.
For example, this markup:
<ol>
<li>First item of ordered list</li>
<li>Second item of ordered list
<ol>
<li>First item of nested ordered list</li>
<li>Second item of nested ordered list </li>
</ol></li>
<li>Third item of ordered list</li>
</ol>
and renders as:
First item of ordered list
Second item of ordered list
First item of nested ordered list
Second item of nested ordered list
Third item of ordered list
Links
There are several ways to markup links in Markdown. The basic inline markup is:
Links can also use a reference style markup to keep from cluttering up the source
text with lengthy and complicated URLs:
[Link text][reference_id]
or
[Link text][]
The URL is specified anywhere in the document after the link markup and may be
relative or absolute. For the markup using a reference text (e.g., reference_id
above), the URL is associated with the reference_id like this:
Images
Images are inserted into the Markdown markup in a manner similar to links, but
using an exclamation point at the beginning of the line. It works well for a
simple, inline image.
Markdown makes it easy to write about HTML and other code. To wrap a block text in
<pre><code> tags, simply indent each line by at least 4 spaces or 1 tab. Thus:
Code spans are inserted in source text by enclosing the text string in backticks.
For example:
Literal Characters
The Markdown markup characters can be inserted literally in the rendered page by
escaping with a backslash before the markup symbol. Thus to insert a literal
underscore character:
Other Features
Markdown includes a neat feature for clickable e-mail addresses. Enclose the
address in the source text with angle brackets and some encoding will result, which
serves as a low-level spam barrier. Some spam bots will probably break the code,
but it is better than nothing. For example:
<name@domain.com>
is converted to:
name@domain.com
<http://domain.com/index.html>
it converts to:
<p><a href="http://domain.com/index.html">
http://domain.com/index.html</a></p>
and renders as a clickable web address:
http://domain.com/index.html