Skip to content

Instantly share code, notes, and snippets.

@xdbr
Last active October 15, 2015 10:37
Show Gist options
  • Save xdbr/72dc565aa59dbf403566 to your computer and use it in GitHub Desktop.
Save xdbr/72dc565aa59dbf403566 to your computer and use it in GitHub Desktop.
markdown to html for wordpress
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