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.40.zip
(7.6 kB
view hashes)
Built Distributions
wordpress2markdown-0.40.win32.exe
(202.7 kB
view hashes)
Close
Hashes for wordpress2markdown-0.40.win32.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44577bcae7afb9bc435d00d20102751ef9a0f3f6128dedf524b133af6435cae |
|
MD5 | 60573bbdea083c1d33451bb65815399e |
|
BLAKE2b-256 | dad79d894871d62394c725656fc2fefb202d68689182f37ed2444750985c9c70 |
Close
Hashes for wordpress2markdown-0.40.win32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a112814d95c10c30f473b2b53e0bbc3881bc2395bdc205ebff68880cb7116e8 |
|
MD5 | 3a66dc4544dce210e1e6c201594f7f1d |
|
BLAKE2b-256 | b9e785514ab720b06f68335abad6465b9a1620322c503baa4526c7f47f7f27b4 |
Close
Hashes for wordpress2markdown-0.40.win32.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8179398a3291b29eea5daa538cc0e4380129bee8e0a58fabcf41fd4ec59fa6 |
|
MD5 | 05095cce8e9e8313ba5a4ee8e5f3be1a |
|
BLAKE2b-256 | 78103031aa8877abfc7ce18c2687424ddfaa1ba9bfad4b42f9892312be9a9f0e |