= Markaround Markaround is a shorthand replacement for the most commonly used subset of HTML for writing on the web. Writing in Markaround is half way between using a WYSIWYG editor and hand-coding HTML. The problem with WYSIWYG editors is not so much that you cannot control the HTML it generates as the HTML mess it creates. Markaround's syntax can be unambiguously and unsurprisingly converted to HTML so you always know what HTML will be generated. It's not the same as hand-coding HTML, but it's good enough most of the time. == Syntax === Inline Markup ==== Strong (bold) Enclose words in asterisk to make them *strong*. Markdown: ''Enclose words in asterisk to make them *strong*.'' HTML: ''

Enclose words in asterisk to make them strong.

'' ==== Emphasis (italics) Enclose words in underscore to _emphasize_ them. Markdown: ''Enclose words in underscore to _emphasize_ them.'' HTML: ''

Enclose words in underscore to emphasize them.

'' ==== Delete (strikethrough) Enclose words in hypen to mark them as -deleted-. Markdown: ''Enclose words in hypen to mark them as -deleted-.'' HTML: ''

Enclose words in hypen to mark them as deleted.

'' ==== Code Span (monospace) Enclose words in two single quotes to make them ''monospaced''. Markdown: ''Enclose words in two single quotes to make them \'\'monospaced\'\'.'' HTML: ''

Enclose words in two single quotes to make them monospaced.

'' Two single quotes are also used for code block. See Code Blocks section below. === Block Markup ==== Paragraphs and Line Breaks This is a paragraph. It requires no special markup. This is another paragraph. You can separate two consecutive paragraphs with a blank line. * Other block-level elements also end paragraphs. Newlines within paragraphs are treated as line breaks. To stop this from happening, \ precede the newline with a backslash. Markdown: '' This is a paragraph. It requires no special markup. This is another paragraph. You can separate two consecutive paragraphs with a blank line. * Other block-level elements also end paragraphs. Newlines within paragraphs are treated as line breaks. To stop this from happening \ precede the newline with a backslash. '' HTML ''

This is a paragraph. It requires no special markup.

This is another paragraph. You can separate two consecutive paragraphs with a blank line.

Newlines within paragraphs
are treated as line breaks. To stop this from happening, precede the newline with a backslash.

'' ==== Headers = Level 1 == Level 2 === Level 3 ==== Level 4 ===== Level 5 ====== Level 6 Markaround: '' = Level 1 == Level 2 === Level 3 ==== Level 4 ===== Level 5 ====== Level 6 '' HTML: ''

Level 1

Level 2

Level 3

Level 4

Level 5
Level 6
'' ==== Horizontal Rule A line with one or more hyphens by themselves is converted to ''
''. Like so: ------ Markaround: '' A line with one or more hyphens by themselves is converted to ''
''. Like so: ------ '' HTML: ''

A line with one or more hyphens by themselves is converted to <hr />. Like so:


'' ==== Code Blocks Two single quotes on a line by themselves marks the start and end of a clode block. If they are indented, then every line in the contained text is stripped of the same number of spaces and/or tabs. Here is some code: '' '' Markaround: '' Two single quotes on a line by themselves marks the start and end of a clode block. If they are indented, then every line in the contained text is stripped of the same number of spaces and/or tabs. Here is some code: \'\' \'\' '' HTML: ''

Two single quotes on a line by themselves marks the start and end of a clode block. If they are indented, then every line in the contained text is stripped of the same number of spaces and/or tabs.

Here is some code:


<?php
echo "Hello World";
?>
'' === Blockquotes > This is a blockquote with two paragraphs. > > This is the second paragraph. > Newline escape \ works here as well. > You can separate two consecutive blockquotes with a blank line. * Other block-level elements also end paragraphs. > Blockquotes can also contain other block level elements. > > = Header > > * one > * two > * three > > > This is a blockquote in a blockquote. > > '' > This is a code block > '' > Markaround: '' '' HTML: '' '' === Lists * List items start with a list marker followed by a space. * Unordered list items start with an asterisk and ordered list items start with a hash. * A blank line or another block element will end a list. * Lists can also contain other block level elements including other lists. | | Just connect all the lines of a list item by starting them with a pipe character folowed by a space, aka the list continuation marker. | | = Header | | # one | # two | # three | | > This is a blockquote. | | '' | This is a code block | '' | * To wrap list item contents in a

tag, leave a blank line after the list item like so | Markaround: '' '' HTML: '' ''