---head
Metadoc
---css
table {
border-width: 0 1px 1px 0;
border-style: solid;
border-color: #ccc;
border-spacing: 0;
}
th {
border-width: 1px 0 0 1px;
border-style: solid;
border-color: #ccc;
text-align: left;
padding: 8px;
}
td {
border-width: 1px 0 0 1px;
border-style: solid;
border-color: #ccc;
padding: 8px;
}
---body
---h1
Metadoc
---t
Metadoc is a translation program that converts plain text documents with certain metadata tags into HTML.
The source code is available in several different languages.
The C version requires the rstring library, which is available here.
The C++ version requires the rstrcpp library, which is available here.
---br
Metadoc recognizes the following tags and attributes:
---th
Tag code
Meaning
---td
---body
begin body section
---td
---br
line break
---td
---c
comment
---td
---css
inline CSS
---td
---h1
first-level header
---td
---h2
second-level header
---td
---head
begin head section
---td
---l
hyperlink
---td
---pnum
show paragraph numbers
---td
---q
quotation
---td
---r
raw HTML
---td
---t
new line of text
---td
---td
table data
---td
---th
table header
---td
---ul
unordered list
---td
---
end current section
---br
---th
Attribute code
Meaning
---td
cn
generate n columns
---td
rn
generate n rows
---td
code
use monospace font
---td
nocode
override monospace font
---td
gray
insert gray table cell
---td
mark
highlight table cell
---br
---t
Usage:
./metadoc INPUT_FILE > OUTPUT_FILE
---br
---h2
Example 1
---t
This document was generated from this input file.
---br
---h2
Example 2
---t
This table was generated from this input file.
---br
---