Skip to content

Instantly share code, notes, and snippets.

@pjq
Forked from imjasonh/markdown.css
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save pjq/a76fdd6300bd76c5596b to your computer and use it in GitHub Desktop.

Select an option

Save pjq/a76fdd6300bd76c5596b to your computer and use it in GitHub Desktop.
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
margin: 0;
padding: 0;
}
h1::before { content: "# "; }
h2::before { content: "## "; }
h3::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;
}
p::before, p::after { content: "\A"; white-space: pre; }
ol::before, ul::before { content: "\A"; white-space: pre; }
ol li::before { content: "* "; }
ul li::before { content: "1. "; }
code::before, code::after { content: "`"; }
pre::before { content:"\A```" attr(lang) "\A"; }
pre::after { content:"\A```"; }
a::before { content: "["; }
a::after { content: "](" attr(href) ")"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment