Convert between markup languages
Project description
Txt2tags
Txt2tags is a document generator. It reads a text file with
minimal markup such as **bold**
and //italic//
and converts it
to the following formats:
- ASCII Art
- AsciiDoc
- Creole 1.0
- DocBook
- DokuWiki
- Google Wiki
- HTML
- LaTeX
- Lout
- MagicPoint
- MoinMoin
- PageMaker
- PmWiki
- Plain Text
- SGML
- UNIX Manpage
- Wikipedia / MediaWiki
- XHTML
You can use it as a command line program or in a Python application.
Usage
Simple example for command line usage:
-
Write a text file like this (leave 1st line blank):
= Hello = I'm a robot. You're my **master**! [smile.jpg]
-
Run this command:
txt2tags --target html --no-headers file.t2t
-
The result is:
<H1>Hello</H1> <P> I'm a robot. You're my <B>master</B>! <IMG ALIGN="middle" SRC="smile.jpg" BORDER="0" ALT=""> </P>
History
Aurelio Jargas started the development of Txt2tags in 2001. The program saw several releases from 2001 to 2010, the last of which was version 2.6. Afterwards, Aurelio became less involved in the development. Still, many new features were added in the main repository (https://github.com/txt2tags/txt2tags), but they were never officially released. In my opinion, many of the new features are only useful for a very small set of users. The extra code adds bloat to the program and makes it hard to maintain the code. Unfortunately, these concerns are not shared by the whole Txt2tags development team. Therefore, I decided to branch off version 2.6 and maintain a simpler txt2tags version that works on Python 3. The file TODO.md lists the goals for the project.
If you'd like to help out with any of the tasks, please get in touch. Pull requests are very welcome!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for txt2tags-3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab9fa56449f5ffed7ce1b8953df9fda3bb19b57446c63dff785bb8d76fc3b51f |
|
MD5 | a16ceb3fc7ea5011bbf591020c0544ae |
|
BLAKE2b-256 | 55a20b22be4ad177120af733bbd74c427d00acf0c3bb32d1e2b6ede4202bbaaf |