Skip to content
Browse files

Merge pull request #5 from cespare/master

Ship our own styles
  • Loading branch information...
2 parents 97bea1e + e116605 commit 5bbdfb6f8d029236a62e503d020590a26c03f2c8 @dmac committed
Showing with 232 additions and 13 deletions.
  1. +2 −3 README.md
  2. +229 −9 bin/markdown_doctor
  3. +1 −1 markdown_doctor.gemspec
View
5 README.md
@@ -1,10 +1,10 @@
# Markdown Doctor
-An absurdly simple script that ganks github styles for your markdown.
+An absurdly simple script that renders your markdown to html.
### Installation
-markdown_doctor uses pygments for syntax highlighting code blocks.
+Markdown Doctor uses pygments for syntax highlighting code blocks.
$ pip install pygments
$ gem install markdown_doctor
@@ -28,4 +28,3 @@ Try putting this in your `.vimrc`:
" Quickly display a markdown preview of the current buffer
:map <leader>m :%w ! markdown_doctor \| bcat<CR><CR>
-
View
238 bin/markdown_doctor
@@ -6,18 +6,238 @@ require "nokogiri"
require "pygments.rb"
HEADER = <<EOF
-<link href="http://assets.github.com/stylesheets/bundles/github-92243db0daab07aa944d353c1ba062b9581bd321.css"
- type="text/css" rel="stylesheet" />
-<link href="http://assets.github.com/stylesheets/bundles/github2-b4eff0bfa63304403db18c61e84e5af78b005dab.css"
- type="text/css" rel="stylesheet" />
<style type="text/css">
-#main-wrapper {
-width: 920px;
-margin: 0 auto;
+a {
+ color: #4183C4;
+ text-decoration: none;
+}
+a:hover {
+ text-decoration: underline;
+}
+h1 {
+ border-bottom: 3px solid #ccc;
+ padding-bottom: 10px;
+}
+body {
+ font: 14px / 20px "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
+}
+pre, code {
+ font-family: "Ubuntu Mono", Courier, monospace;
+ background-color: #F0EEEA;
+ padding: 2px;
+}
+.highlight pre {
+ padding-left: 6px;
+}
+#wrapper {
+ width: 900px;
+ margin: 50px auto;
+ border: 3px solid #ccc;
+ padding: 0px 15px;
+}
+pre .hll {
+ background-color: #ffffcc;
+}
+pre .c {
+ color: #408080;
+ font-style: italic;
+}
+pre .k {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .o {
+ color: #666666;
+}
+pre .cm {
+ color: #408080;
+ font-style: italic;
+}
+pre .cp {
+ color: #bc7a00;
+}
+pre .c1 {
+ color: #408080;
+ font-style: italic;
+}
+pre .cs {
+ color: #408080;
+ font-style: italic;
+}
+pre .gd {
+ color: #a00000;
+}
+pre .ge {
+ font-style: italic;
+}
+pre .gr {
+ color: #ff0000;
+}
+pre .gh {
+ color: #000080;
+ font-weight: bold;
+}
+pre .gi {
+ color: #00a000;
+}
+pre .go {
+ color: #808080;
+}
+pre .gp {
+ color: #000080;
+ font-weight: bold;
+}
+pre .gs {
+ font-weight: bold;
+}
+pre .gu {
+ color: #800080;
+ font-weight: bold;
+}
+pre .gt {
+ color: #0040d0;
+}
+pre .kc {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .kd {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .kn {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .kp {
+ color: #5d2846;
+}
+pre .kr {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .kt {
+ color: #b00040;
+}
+pre .m {
+ color: #666666;
+}
+pre .s {
+ color: #4eb25a;
+}
+pre .na {
+ color: #7d9029;
+}
+pre .nb {
+ color: #5d2846;
+}
+pre .nc {
+ color: #3333a0;
+ font-weight: bold;
+}
+pre .no {
+ color: #28732c;
+}
+pre .nd {
+ color: #aa22ff;
+}
+pre .ni {
+ color: #999999;
+ font-weight: bold;
+}
+pre .ne {
+ color: #d2413a;
+ font-weight: bold;
+}
+pre .nf {
+ color: #3333a0;
+}
+pre .nl {
+ color: #a0a000;
+}
+pre .nn {
+ color: #3333a0;
+ font-weight: bold;
+}
+pre .nt {
+ color: #5d2846;
+ font-weight: bold;
+}
+pre .nv {
+ color: #353c92;
+}
+pre .ow {
+ color: #aa22ff;
+ font-weight: bold;
+}
+pre .w {
+ color: #bbbbbb;
+}
+pre .mf {
+ color: #666666;
+}
+pre .mh {
+ color: #666666;
+}
+pre .mi {
+ color: #666666;
+}
+pre .mo {
+ color: #666666;
+}
+pre .sb {
+ color: #4eb25a;
+}
+pre .sc {
+ color: #4eb25a;
+}
+pre .sd {
+ color: #4eb25a;
+ font-style: italic;
+}
+pre .s2 {
+ color: #4eb25a;
+}
+pre .se {
+ color: #bb6622;
+ font-weight: bold;
+}
+pre .sh {
+ color: #4eb25a;
+}
+pre .si {
+ color: #bb6688;
+ font-weight: bold;
+}
+pre .sx {
+ color: #5d2846;
+}
+pre .sr {
+ color: #bb6688;
+}
+pre .s1 {
+ color: #4eb25a;
+}
+pre .ss {
+ color: #353c92;
+}
+pre .bp {
+ color: #5d2846;
+}
+pre .vc {
+ color: #353c92;
+}
+pre .vg {
+ color: #353c92;
+}
+pre .vi {
+ color: #353c92;
+}
+pre .il {
+ color: #666666;
}
</style>
-<div id="main-wrapper">
-<div class="markdown-body">
+<div id="wrapper">
EOF
FOOTER = <<EOF
View
2 markdown_doctor.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "markdown_doctor"
- s.version = "0.3.0"
+ s.version = "0.4.0"
s.required_rubygems_version = Gem::Requirement.new(">=0") if s.respond_to? :required_rubygems_version=
s.specification_version = 2 if s.respond_to? :specification_version=

0 comments on commit 5bbdfb6

Please sign in to comment.
Something went wrong with that request. Please try again.