Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A script to convert wordpress.com html into markdown.

Project Description
Wordpress To Markdown
=====================

This is a script to convert wordpress.com style html (including sourcecode) into github flavour markdown.

Script Usage
============

usage: Wordpress2Markdown [-h] [-f] wordpress_html

This script converts wordpress.com html into markdown syntax.

positional arguments:
wordpress_html

optional arguments:
-h, --help show this help message and exit
-f, --file Read the Wordpress.com html from a file

How it works
============

This passes over the text several times, converting a different
construction on each pass.

Passes
------

1. <h[1,2,3,4,5,6]> tags -> #, ##, ###, ####, #####, ###### pairs
2. &lt;a href="url">title</a> -> \[title](url)
3. [sourcecode language="lang"] -> ```lang
4. [/sourcecode] -> ```
5. &lt;!-- --> comments deleted, mainly due to &lt;!--more--> tags.

Note converting [sourcecode] tags currently ignores any option but language.

Unimplemented features:
-----------------------

- ordered/unordered lists
- images
Release History

Release History

This version
History Node

0.40

History Node

0.39

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wordpress2markdown-0.40.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source May 7, 2013
wordpress2markdown-0.40.win32.exe (202.7 kB) Copy SHA256 Checksum SHA256 any Windows Installer May 7, 2013
wordpress2markdown-0.40.win32.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 any Dumb Binary May 7, 2013
wordpress2markdown-0.40.win32.zip (8.9 kB) Copy SHA256 Checksum SHA256 any Dumb Binary May 7, 2013
wordpress2markdown-0.40.zip (7.6 kB) Copy SHA256 Checksum SHA256 Source May 7, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting