Skip to content

Instantly share code, notes, and snippets.

@ChaseFlorell
Forked from imjasonh/markdown.css
Last active December 26, 2023 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ChaseFlorell/b4ea46fce7cf849a96cf to your computer and use it in GitHub Desktop.
Save ChaseFlorell/b4ea46fce7cf849a96cf to your computer and use it in GitHub Desktop.
.md *{
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
.md h1::before { content: "# "; }
.md h2::before { content: "## "; }
.md h3::before { content: "### "; }
.md h4::before { content: "#### "; }
.md h5::before { content: "##### "; }
.md h6::before { content: "###### "; }
.md h1::after { content: " #"; }
.md h2::after { content: " ##"; }
.md h3::after { content: " ###"; }
.md h4::after { content: " ####"; }
.md h5::after { content: " #####"; }
.md h6::after { content: " ######"; }
.md strike::after,
.md strike::before { content: "~~"; }
.md i::before,
.md i::after,
.md em::before,
.md em::after { content: "*"; }
.md b::before,
.md b::after,
.md strong::before,
.md strong::after { content: "**"; }
.md ol,
.md ul { list-style: none; padding-left: 0; }
.md ul li::before { content: "* "; }
.md ol { counter-reset: numberlist; }
.md ol li { counter-increment: numberlist; }
.md ol li::before { content: counter(numberlist) ". "; }
.md code::before,
.md code::after { content: "`"; }
.md pre::before { content: "```" attr(lang) "\A"; }
.md pre::after { content:"```\A"; }
.md a::before { content: "["; }
.md a::after { content: "](" attr(href) ")"; }
.md tr::before { content: "| "; }
.md td::after { content: " | "; }
.md thead td::after { content: " | \A-----| "; white-space: pre; }
.md hr {height: 0px; border:none;}
.md hr::after {content: "-----";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment