With orgco you can convert Emacs' orgmode to other formats.
Project description
Copyright (c) 2013, Friedrich Paetzke (f.paetzke@gmail.com) All rights reserved.
With orgco you can convert Emacs’ orgmode to other formats.
Supported output formats:
HTML
reStructuredText (rst)
Supported orgmode tags:
headers
code (inline and multi-line)
lists (ordered, unordered and definition lists)
tables
links (external and images)
italic, bold, underlined, stroked markups
To use orgco install it from PyPI:
$ pip install orgco
Orgco provides 2 simple functions to convert orgmode to html (convert_html()) and rst (convert_rst()).
from orgco import convert_html
with open('my_orgmode.org') as f:
html = convert_html(f.read())
print(html)
The HTML converter takes some optional parameters:
header=True: To decide if the output should only contain the inner body or act as a normal HTML file with header and body.
highlight=True: To enable code highlighting.
includes=['style.css']: To include some additional CSS files.
Orgco comes also with a command line tool:
usage: orgco.py [-h] -i INPUT -o OUTPUT -f FORMAT [--header] [--highlight]
[--includes INCLUDES [INCLUDES ...]]
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
-o OUTPUT, --output OUTPUT
-f FORMAT, --format FORMAT
--header
--highlight
--includes INCLUDES [INCLUDES ...]
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 orgco-0.0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cac57c4ec60cc796ec9d7986c93da25299a693404ca642116707af73fc5ab2b |
|
MD5 | ce7863e32d8374bffaa24a0e1bf16bbf |
|
BLAKE2b-256 | b97f4fbcd2809724ea8ef294b61469f0cbb339d8461c84591377de1414611428 |