Last active
October 15, 2015 10:37
-
-
Save xdbr/72dc565aa59dbf403566 to your computer and use it in GitHub Desktop.
markdown to html for wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <(echo '<style>code {display: inline;padding: 2px;border: none;}</style>') input.html | perl -MHTML::Entities -pe 's{<pre><code>}{<pre>}g; s{</code></pre>}{</pre>}g; decode_entities $_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment