Last active
May 24, 2024 22:56
-
-
Save imjasonh/c00cdd7aece6945fb8ea to your computer and use it in GitHub Desktop.
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} | |
h1::before { content: "# "; } | |
h2::before { content: "## "; } | |
h3::before { content: "### "; } | |
h4::before { content: "#### "; } | |
h5::before { content: "##### "; } | |
h6::before { content: "###### "; } | |
strike::after, strike::before { content: "~~"; } | |
i::before, i::after { content: "*"; } | |
b::before, b::after { content: "**"; } | |
ol, ul { list-style: none; padding-left: 0; } | |
ul li::before { content: "* "; } | |
ol li::before { content: "1. "; } | |
code::before, code::after { content: "`"; } | |
pre::before { content: "```" attr(lang) "\A"; } | |
pre::after { content:"```\A"; } | |
a::before { content: "["; } | |
a::after { content: "](" attr(href) ")"; } | |
tr::before { content: "| "; } | |
td::after { content: " | "; } | |
thead td::after { content: " | \A-----| "; white-space: pre; } |
Thanks for sharing, ever since I saw this, I've been meaning to find a place to use it. I've just applied this lightly at https://motionobj.com/wilfredapp/.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome :)