183 lines
3.4 KiB
Plaintext
183 lines
3.4 KiB
Plaintext
header-line1: document title
|
|
header-line2: author name, email
|
|
header-line3: date, version
|
|
|
|
txt2tags sample
|
|
|
|
% Comment Line ALERT TODO FIXME
|
|
|
|
%%%
|
|
Comment Block
|
|
%%%
|
|
|
|
%!--includeconf: config.t2t
|
|
% disabled here because there is no external file
|
|
%!preproc: 'JUST A TEST' ' '
|
|
%!postproc: '(?i)(<body)' '\1 id="shots"'
|
|
%!postproc: '(?i)(</title>)' ' shots\1'
|
|
|
|
%!--include: menu.t2t
|
|
|
|
= Title 1 =
|
|
|
|
|
|
== My Subtitle 1 ==[some definition]
|
|
|
|
Some examples:
|
|
|
|
- A paragraph with **bold**, //italic// and --strike--.
|
|
- You can even __underline your docs__!
|
|
|
|
- And use **//bold and italic//**
|
|
- or //**italic and bold**//
|
|
|
|
Here is a nice pic: [img/t2tpowered.png].
|
|
|
|
- And a [link to a cool website http://txt2tags.sf.net]!
|
|
|
|
- A table :
|
|
|
|
|| Name | Age | Gender |
|
|
| John | 33 | Male |
|
|
| Mary | 19 | Female |
|
|
|
|
|
|
``` A verbatim line
|
|
|
|
And it's working for ``special code`` like this.
|
|
|
|
```
|
|
A verbatim block
|
|
```
|
|
|
|
Raw strings:
|
|
|
|
""" A raw line
|
|
|
|
"""
|
|
A raw block
|
|
"""
|
|
|
|
Tagged strings:
|
|
|
|
''' A tagged line
|
|
|
|
'''
|
|
A tagged block
|
|
'''
|
|
|
|
And remember,
|
|
A TAB in front of the line does a quotation.
|
|
More TABs, more depth (if allowed).
|
|
|
|
Horizontal lines:
|
|
--------------------------------------------------------
|
|
^ thin or large v
|
|
========================================================
|
|
|
|
== My Subtitle 2 ==
|
|
|
|
|
|
Lorem ipsum etc
|
|
Lorem ipsum etc Lorem ipsum etc
|
|
|
|
- Test d'écriture avec des accents à la française. Ça marche ou pas ?
|
|
|
|
== My Subtitle 3 ==
|
|
|
|
|
|
Lorem ipsum etc
|
|
Lorem ipsum etc
|
|
|
|
Here is a direct link: http://kde.org
|
|
|
|
|
|
- Another boring part...
|
|
|
|
|
|
|
|
=== My Subsubtitle 1 ===
|
|
|
|
//It's a level 3 header//
|
|
|
|
- list 1
|
|
- list 2
|
|
- list 2b
|
|
- list 3
|
|
|
|
|
|
=== My Subsubtitle 2 ===
|
|
|
|
//It's another level 3 header//
|
|
|
|
+ ordered list 1
|
|
+ list 2
|
|
+ list 2B
|
|
+ list 2C
|
|
+ list 3
|
|
|
|
|
|
== My Subtitle 4 ==
|
|
|
|
The handy ``%%date`` macro expands to the current date.
|
|
|
|
So today is %%date on the ISO ``YYYYMMDD`` format.
|
|
|
|
You can also specify the date format with the %? flags,
|
|
as ``%%date(%m-%d-%Y)`` which gives: %%date(%m-%d-%Y).
|
|
|
|
= Images =
|
|
|
|
The image mark is as simple as it can be: ``[filename]``.
|
|
|
|
[img/photo.jpg]
|
|
|
|
And with some targets the image is linkable :
|
|
|
|
[[img/photo.jpg] http://www.txt2tags.org]
|
|
|
|
= Tables =
|
|
|
|
Use pipes to compose table rows and cells.
|
|
Double pipe at the line beginning starts a heading row.
|
|
Natural spaces specify each cell alignment.
|
|
|
|
| cell 1.1 | cell 1.2 | cell 1.3 |
|
|
| cell 2.1 | cell 2.2 | cell 2.3 |
|
|
| cell 3.1 | cell 3.2 | cell 3.3 |
|
|
|
|
|| heading 1 | heading 2 | heading 3 |
|
|
| cell 1.1 | cell 1.2 | cell 1.3 |
|
|
| cell 2.1 | cell 2.2 | cell 2.3 |
|
|
|
|
|_ heading 1 | cell 1.1 | cell 1.2 |
|
|
| heading 2 | cell 2.1 | cell 2.2 |
|
|
| heading 3 | cell 3.1 | cell 3.2 |
|
|
|
|
|/ heading | heading 1 | heading 2 |
|
|
| heading 1 | cell 1.1 | cell 1.2 |
|
|
| heading 2 | cell 2.1 | cell 2.2 |
|
|
|
|
Without the last pipe, no border:
|
|
|
|
| cell 1.1 | cell 1.2 | cell 1.3
|
|
| cell 2.1 | cell 2.2 | cell 2.3
|
|
| cell 3.1 | cell 3.2 | cell 3.3
|
|
|
|
|| heading 1 | heading 2 | heading 3
|
|
| cell 1.1 | cell 1.2 | cell 1.3
|
|
| cell 2.1 | cell 2.2 | cell 2.3
|
|
|
|
|_ heading 1 | cell 1.1 | cell 1.2
|
|
| heading 2 | cell 2.1 | cell 2.2
|
|
| heading 3 | cell 3.1 | cell 3.2
|
|
|
|
|/ heading | heading 1 | heading 2
|
|
| heading 1 | cell 1.1 | cell 1.2
|
|
| heading 2 | cell 2.1 | cell 2.2
|
|
|
|
|
|
= Other Title =
|
|
|
|
nothing to say here...
|