---
name: header one
in: h1. Header 1
html:
Header 1
latex: "\\section{Header 1}\n\n"
---
name: header two
in: h2. Header 2
html: Header 2
latex: "\\subsection{Header 2}\n\n"
---
name: header three
in: h3. Header 3
html: Header 3
latex: "\\subsubsection{Header 3}\n\n"
---
name: header four
in: h4. Header 4
html: Header 4
latex: "\\paragraph{Header 4}\n\n"
---
name: header five
in: h5. Header 5
html: Header 5
latex: "\\subparagraph{Header 5}\n\n"
---
name: header six
in: h6. Header 6
html: Header 6
latex: "\\textbf{Header 6}\n\n"
---
name: blockquote
in: |-
Any old text.
bq. A block quotation.
Any old text.
html: |-
Any old text.
A block quotation.
Any old text.
latex: |+
Any old text.
\begin{quotation}
A block quotation.
\end{quotation}
Any old text.
---
in: |-
# A first item
# A second item
# A third item
# A fourth item
html: |-
- A first item
- A second item
- A third item
- A fourth item
latex: |+
\begin{enumerate}
\item A first item
\item A second item
\item A third item
\item A fourth item
\end{enumerate}
---
in: |-
* A first item
* A second item
* A third item
* A fourth item
html: |-
- A first item
- A second item
- A third item
- A fourth item
latex: |+
\begin{itemize}
\item A first item
\item A second item
\item A third item
\item A fourth item
\end{itemize}
---
in: _a phrase_
html: a phrase
latex: "\\emph{a phrase}\n\n"
---
in: __a phrase__
html: a phrase
latex: "\\textit{a phrase}\n\n"
---
in: '*a phrase*'
html: a phrase
latex: "\\textbf{a phrase}\n\n"
---
in: '**a phrase**'
html: a phrase
latex: "\\textbf{a phrase}\n\n"
---
in: Nabokov's ??Pnin??
html: Nabokov’s Pnin
latex: "Nabokov's \\begin{quote}Pnin\\end{quote}\n\n"
---
name: del part of word
in: 'A very [-extra-]ordinary day.'
html: "A very extraordinary day.
"
latex: "A very \\sout{extra}ordinary day.\n\n"
---
name: del part of word that contains a hyphen
in: 'An [-extra-extra-]ordinary day.'
html: An extra-extraordinary day.
latex: "An \\sout{extra-extra}ordinary day.\n\n"
---
name: del a phrase
in: 'Delete -a phrase- this way.'
html: Delete a phrase this way.
latex: "Delete \\sout{a phrase} this way.\n\n"
---
name: del a phrase that contains hyphens
in: 'Delete -a no-nonsense phrase- this way.'
html: Delete a no-nonsense phrase this way.
latex: "Delete \\sout{a no-nonsense phrase} this way.\n\n"
---
in: +a phrase+
html: a phrase
latex: "\\underline{a phrase}\n\n"
---
in: ^a phrase^
html: a phrase
latex: "\\textsuperscript{a phrase}\n\n"
---
in: ~a phrase~
html: a phrase
latex: "\\textsubscript{a phrase}\n\n"
---
in: "%(myclass)SPAN%"
html: SPAN
no_span_caps_html: SPAN
---
in: "%{color:red}red%"
html: red
---
in: "%[fr]rouge%"
html: rouge
---
in: _(big)red_
html: red
---
in: p=. A centered paragraph.
html: A centered paragraph.
latex: "\\begin{center}A centered paragraph.\\end{center}\n\n"
---
in: p(bob). A paragraph
html: A paragraph
---
in: p{color:#ddd}. A paragraph
html: A paragraph
---
in: p[fr]. A paragraph
html: A paragraph
---
in: h2()>. right-aligned header2, indented 1em both side
html: right-aligned header2, indented 1em both side
---
in: h3=. centered header
html: centered header
latex: "\\begin{center}\\subsubsection{centered header}\\end{center}\n\n"
---
in: '!>/image.gif! right-aligned image'
html:
right-aligned image
---
in: p[no]{color:red}. A Norse of a different colour.
html: A Norse of a different colour.
---
in: |-
|This|is|a|simple|table|
|This|is|a|simple|row|
html: |-
This |
is |
a |
simple |
table |
This |
is |
a |
simple |
row |
latex: |
\begin{table}
\centering
\begin{tabular}{ l l l l l }
This & is & a & simple & table \\
This & is & a & simple & row \\
\end{tabular}
\end{table}
---
in: |-
table{border:1px solid black}.
|This|is|a|row|
|This|is|a|row|
html: |-
This |
is |
a |
row |
This |
is |
a |
row |
---
in: '{background:#ddd}. |This|is|a|row|'
html: |-
---
in: |-
|{background:#ddd}. Cell with gray background|
|\2. Cell spanning 2 columns|
|/3. Cell spanning 3 rows|
|>. Right-aligned cell|
html: |-
Cell with gray background |
Cell spanning 2 columns |
Cell spanning 3 rows |
Right-aligned cell |
---
name: basics
in: |-
h2{color:green}. This is a title
h3. This is a subhead
p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.
bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.
Simple list:
# one
# two
# three
Multi-level list:
# one
## aye
## bee
## see
# two
## x
## y
# three
html: |-
This is a title
This is a subhead
This is some text of dubious character. Isn’t the use of “quotes” just lazy writing — and theft of ‘intellectual property’ besides? I think the time has come to see a block quote.
This is a block quote. I’ll admit it’s not the most exciting block quote ever devised.
Simple list:
- one
- two
- three
Multi-level list:
- one
- aye
- bee
- see
- two
- x
- y
- three
---
name: tougher stuff
in: |-
Multi-level list:
# one
## aye
## bee
## see
# two
## x
## y
# three
Mixed list:
* Point one
* Point two
## Step 1
## Step 2
## Step 3
* Point three
** Sub point 1
** Sub point 2
Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No!
"This is a link (optional title)":http://www.textism.com
html: |-
Multi-level list:
- one
- aye
- bee
- see
- two
- x
- y
- three
Mixed list:
- Point one
- Point two
- Step 1
- Step 2
- Step 3
- Point three
Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No!
This is a link
---
name: table
in: |-
table{border:1px solid black}.
|_. this|_. is|_. a|_. header|
<{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
|this|<>{padding:10px}. is|^. another|(bob#bob). row|
html: |-
this |
is |
a |
header |
this is |
a |
row |
this |
is |
another |
row |
---
in: |-
An image:
!/common/textist.gif(optional alt text)!
# Librarians rule
# Yes they do
# But you knew that
Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_.
That was a linebreak. And something to indicate *strength*. Of course I could use my own HTML tags if I felt like it.
html: |-
An image:

- Librarians rule
- Yes they do
- But you knew that
Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to emphasize.
That was a linebreak. And something to indicate strength. Of course I could use my own HTML tags if I felt like it.
---
name: code
in: |-
h3. Coding
This is some code, "isn't it"
. Watch those quote marks! Now for some preformatted text:
$text = str_replace("%::%
","",$text);
$text = str_replace("%::%","",$text);
$text = str_replace("%::%","",$text);
This isn't code.
html: |-
Coding
This is some code, "isn't it"
. Watch those quote marks! Now for some preformatted text:
$text = str_replace("<p>%::%</p>","",$text);
$text = str_replace("%::%</p>","",$text);
$text = str_replace("%::%","",$text);
This isn’t code.
---
name: hard break
in: |-
trivial
break
next
html: |-
trivial
break
next
---
name: normal paragraphs
in: |-
trivial
paragraphs
html: |-
trivial
paragraphs
---
name: hard break in a list
in: |-
* first line
* second
line
* third line
html: |-
- first line
- second
line
- third line
---
name: copyright symbol at line start
in: "(C) copyright conversion (C) test."
html: "© copyright conversion © test.
"