Convert [x]it! to markdown
Project description
xit2md
[x]it! is a plain-text file format for todos and check lists. xit2md converts a checklist in [x]it! format to markdown task lists. Markdown task lists are available in many markdown dialects including GitHub Flavored Markdown.
Installation
pip install xit2md
Usage
On the Console
# convert [x]it! file to markdown file
$ xit2md in.xit > out.md
# fetch [x]it! file from the web and convert to markdown
$ curl "https://myserver.com/example.xit" | xit2md
As a Library
>>> from xit2md import xit2md_text
>>> xit = """Named Group
... [ ] Open
... [x] Checked
... [@] Ongoing
... [~] Obsolete
... [?] In Question
... """
>>> print(xit2md_text(xit, heading_level=2))
## Named Group
- [ ] Open
- [x] Checked
- [ ] Ongoing
- [x] ~Obsolete~
- [ ] In Question
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
xit2md-0.2.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
xit2md-0.2.2-py3-none-any.whl
(3.9 kB
view hashes)