Google Markdown¶
The md
layout reads and writes records as Markdown tables using an interface
that looks like csv
.
Standard Markdown does not support tables, but Google Markdown as used in github does. This layout lets you read and write that layout for text record processing.
-
class
txf.layouts.md.
LineReader
(iterable, **config)¶ An
iterator
that returns strings parsed withsplit_escaped()
. It skips rows which are header layoutting.
-
class
txf.layouts.md.
DictReader
(iterable[, fieldnames=None[, **config]])¶ An
iterator
that returns strings parsed withsplit_escaped()
. It is a subclass ofDictReader
and reads thefieldnames
from the header row if they have not been supplied.
-
class
txf.layouts.md.
LineWriter
(outfile, fieldnames, **config)¶ An
txf.layouts.LineWriter
that returns strings joined withjoin_escaped()
. It skips rows which are header layoutting.