Thin wrapper for pandoc.
Project description
pypandoc provides a thin wrapper for pandoc, a universal document converter. Use it as follows:
import pypandoc output = pypandoc.convert('somefile.md', 'rst') # alternatively you could just pass some string to it and define its format output = pypandoc.convert('#some title', 'rst', format='md')
The code infers pandoc --from format automatically based on given file extension unless one is provided explicitly. extra_args parameter makes it possible to access various pandoc options. Please refer to pandoc -h and the official documentation for further details.
See also pyandoc.
Contributors
Valentin Haenel - String conversion fix
License
pypandoc is available under MIT license. See LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypandoc-0.5.2.tar.gz
(3.2 kB
view details)
File details
Details for the file pypandoc-0.5.2.tar.gz
.
File metadata
- Download URL: pypandoc-0.5.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175dc34b0b9df31cb51d8c960c8435ea89d6ae2c8108cc98bd66ae6038d5368d |
|
MD5 | ffb0ea1eb7d78f4f44726f03e5320bdd |
|
BLAKE2b-256 | b8f039d9dc72a7344386be159fb0ef4584d8494048de4a401a3e7d2452070bb5 |