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. <a href="url">title</a> -> \[title](url)
3. [sourcecode language="lang"] -> ```lang
4. [/sourcecode] -> ```
5. <!-- --> comments deleted, mainly due to <!--more--> tags.
Note converting [sourcecode] tags currently ignores any option but language.
Unimplemented features:
-----------------------
- ordered/unordered lists
- images
=====================
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. <a href="url">title</a> -> \[title](url)
3. [sourcecode language="lang"] -> ```lang
4. [/sourcecode] -> ```
5. <!-- --> comments deleted, mainly due to <!--more--> tags.
Note converting [sourcecode] tags currently ignores any option but language.
Unimplemented features:
-----------------------
- ordered/unordered lists
- images
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 Distributions
wordpress2markdown-0.39.zip
(7.0 kB
view hashes)
Built Distributions
wordpress2markdown-0.39.win32.exe
(202.7 kB
view hashes)
Close
Hashes for wordpress2markdown-0.39.win32.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78232f72fe88462e0038f35304df69696935721534f5af849c75182da67be3fa |
|
MD5 | 7c04c3e6b265f798c879cde8b7d8ba94 |
|
BLAKE2b-256 | f7f89d163996a32ad8c7648bc7b89d615f742169d602a751afa74f70f9765ed1 |
Close
Hashes for wordpress2markdown-0.39.win32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b6dd980e90af89ceebf4055edba2c88483dc949dae925eac76a2fa69cdb8f7 |
|
MD5 | d10b35e28c37e4bc0b3492e368146008 |
|
BLAKE2b-256 | bf464f018208e8e77439750621f73c71049f2d6e6943f1282b5cf09bc8379992 |
Close
Hashes for wordpress2markdown-0.39.win32.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd6e9e5efffec405db4a4be602ddb41bc51ed024e469adfd3991b99ac10cea9 |
|
MD5 | bd2e3dc9a3e2077d33380514f2f022e7 |
|
BLAKE2b-256 | 573c5bda87cdd5ecca3d3f4120a2a21c04e438c7eddf9eb1744f40a165adef9f |