Convert RST to T2T
Turn RST files into txt2tags. A txt2tags document with headings, lists, tables and links; footnotes are written in parentheses where they are marked, block quotes become plain paragraphs, a table's header row becomes an ordinary row, and a line that starts with a percent sign is a comment that txt2tags hides.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop RST files on the dialor turn it to pick what to do
reStructuredText becomes a txt2tags file.Headings, lists, tables and links carry over into a T2T document.
What you get
A txt2tags document with your headings, lists, tables and links. It is plain text with light markup, which the txt2tags tool can turn into many formats.
The conversion produces one file.
What changes
Footnotes are written in parentheses at the place where they are marked. Block quotes become plain paragraphs. A table's header row becomes an ordinary row.
Images stay as links. They are not embedded.
What is left behind
Directives that only Sphinx knows, such as toctree, keep just their text. Comments in the RST are dropped.
A line that starts with a percent sign is a comment in txt2tags, and txt2tags hides it. Keep that in mind if a line of your text begins with a percent sign.
To go the other way, use T2T to RST.
RST and T2T.What each format is.
The formats
reStructuredText
reStructuredText, the markup of Python documentation and Sphinx.
- Extensions
- .rst
- MIME type
- text
/x -rst - Kind
- Text and data
txt2tags
txt2tags documents, plain text with light markup that the txt2tags tool turns into many formats.
- Extensions
- .t2t
- MIME type
- text
/x -txt2tags - Kind
- Text and data
In your code.The same RST to T2T conversion through the API, for your app or your agent.
$ cv convert report.rst report.t2t$ cv convert report.rst report.t2tQuestions.What people ask about RST to T2T.
Yes. They are written as headings, lists and tables in the T2T file. The header row of a table becomes an ordinary row.
They are written in parentheses at the place where they are marked.
They keep just their text. The directive itself is not carried over.
No. Images stay as links to the picture.