Skip to main content

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

Project details


Download files

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

Files for wordpress2markdown, version 0.40
Filename, size File type Python version Upload date Hashes
Filename, size wordpress2markdown-0.40.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View
Filename, size wordpress2markdown-0.40.win32.exe (202.7 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size wordpress2markdown-0.40.win32.tar.gz (5.7 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size wordpress2markdown-0.40.win32.zip (8.9 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size wordpress2markdown-0.40.zip (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page