Last active
June 24, 2019 21:45
-
-
Save kdamball/9daaad76712f7b34382e6653d2ebbaac to your computer and use it in GitHub Desktop.
Transform your HTML into markdown
This file contains hidden or 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
* {font-size: 16px !important; font-weight: 400 !important; font-style: normal !important; background-color: white;} | |
h1::before {content: "# "} | |
h2::before {content: "## "} | |
h3::before {content: "### "} | |
h4::before {content: "#### "} | |
h5::before {content: "##### "} | |
h6::before {content: "###### "} | |
a {display:inline-block;} | |
em {display:inline-block;} | |
strong {display:inline-block;} | |
a::before { content:"[" } | |
a::after {content: "]("attr(href)")";} | |
em::before { content: "*"} | |
strong::before { content: "**"} | |
em::after { content: "*"} | |
strong::after { content: "**"} | |
ul{margin-left: 0; padding-left: 0;} | |
li { list-style: none; } | |
li::before{ content: "* ";} | |
img{display: block;} | |
img[alt]::before { position: absolute; left: 0; background-color: white; z-index: 20; display: inline-block; content:"[]("attr(src)" '" attr(alt) "')";} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment