Skip to main content

With orgco you can convert Emacs' orgmode to other formats.

Project description

https://travis-ci.org/paetzke/orgco.svg?branch=master https://coveralls.io/repos/paetzke/orgco/badge.svg?branch=master https://badge.fury.io/py/orgco.svg

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 ...]

Copyright (c) 2013-2015, Friedrich Paetzke (paetzke@fastmail.fm). All rights reserved.

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

orgco-0.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

orgco-0.2.0-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file orgco-0.2.0.tar.gz.

File metadata

  • Download URL: orgco-0.2.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for orgco-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1fed0b61c0619189785e4cdf1c6802e4e37026e512913baa0be99ec3d7cc7abe
MD5 4cc67800d2c19102eedbe0a3e676e70e
BLAKE2b-256 85f038c64c55e2cf3d9712f934682d73ad33c87593e3e37b6faf7c591c21926e

See more details on using hashes here.

File details

Details for the file orgco-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for orgco-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 322e29ca8a71f0c44f9a10729cc35d59e96257bb0ccf817be8f01e5410ea5c28
MD5 6e3172ee4ce572e4a5ea9df1220d61c1
BLAKE2b-256 de4c57fe138e37f44b9c5bafb98afbf6c9a5d47e0595658367099aaec761bc3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page