• This repository has been archived on 05/Sep/2021
  • Stars
    star
    212
  • Rank 186,122 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 14 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python wrapper for Pandoc—the universal document converter.

Pyandoc: a simple Pandoc wrapper for Python

Pyandoc is a simple Python wrapper for the excellent pandoc utility. It allows you to convert the format of text documents by interacting with a Document object's attributes. Each supported format is available as a property, and can either read from or written to.

Requirements

  • Pandoc

Usage

Get setup.

import pandoc

Let's start with a Markdown document:

doc = pandoc.Document()
doc.markdown = '''
# I am an H1 Tag

* bullet point
* more points
* point with [link](http://kennethreitz.com)!
'''

Now let's convert that into a ReST document:

>>> print doc.rst

I am an H1 Tag
==============


-  bullet point
-  more points
-  point with `link <http://kennethreitz.com>`_!
Formats available:
  • asciidoc
  • beamer
  • commonmark
  • context
  • docbook
  • doc- x
  • dokuwiki
  • dzslides
  • epub
  • epub3
  • fb2
  • haddock
  • html
  • html5
  • icml
  • json (pandoc's AST)
  • latex
  • man
  • markdown
  • markdown_github
  • markdown_mmd
  • markdown_phpextra
  • markdown_strict
  • mediawiki
  • native
  • odt
  • opendocument
  • opml
  • org
  • pdf
  • plain
  • revealjs
  • rst
  • rtf
  • s5,
  • slideous
  • slidy
  • texinfo
  • textile

Enjoy.

More Repositories

1

xerox

Copy + Paste in Python.
Python
229
star
2

reportik

Neural Abstractive News Article Summarization Using Sequence-to-Sequence Models
Python
4
star
3

RubeGoldbergSoftware

Triggers for Rube Goldberg machines. Not actively maintained.
Python
3
star
4

adityarathod.github.io

Source code of my website.
CSS
3
star
5

zetaboard-old

A leaderboard for Zetamac
TypeScript
3
star
6

travyl

Leveraging LLMs to curate tailored travel itineraries for airline customers. Winner of American Airlines challenge @ TAMUhack 2023.
TypeScript
3
star
7

texas-grid-load-tracker

A web dashboard that collected and displayed available grid power over the 2021 Texas power crisis.
TypeScript
2
star
8

flexapp

An alternative client for the FlexTime product by TeachMore.
HTML
2
star
9

hide-linkedin-feed

Hides the LinkedIn feed to reduce job-seeking anxiety
JavaScript
2
star
10

dancevak

vishvak got moves
TypeScript
2
star
11

GetSomeZen

Electron app that advises you using the AdviceSlip API.
JavaScript
2
star
12

snowflakey

a tiny go library to implement snowflake addressing
Go
2
star
13

eyealert

Realtime attentiveness analytics for critical environments. Winner of Lockheed & Children's Health challenges @ HackDFW 2022.
TypeScript
2
star
14

deeplearning

Course notes and code for the 6.S191 course by MIT.
1
star
15

flexapi

An API for the FlexTime product by TeachMore
JavaScript
1
star
16

adibot

run a bot that talks like you
Jupyter Notebook
1
star
17

mushroom-decision-tree

A decision tree classifier built from scratch to classify mushrooms based on the UCI Mushroom dataset.
Python
1
star
18

cdm-parser

A parser for public chargemaster data provided by hospitals.
Python
1
star
19

notes

A repository of notes taken throughout my undergraduate career
HTML
1
star
20

triaged

ML-powered medical triage tool. Submitted to HackMIT 2020.
TypeScript
1
star
21

virtual-ta

Rasa-based Virtual TA app designed to support algorithms courses
Python
1
star
22

FruitClassifier

A reimplementation of a fruit classifier in TensorFlow 2.0 based on the Fruit360 paper + dataset
Python
1
star
23

dotfiles

Public mirror of my dotfiles.
Lua
1
star