Skip to content

Instantly share code, notes, and snippets.

@christopherlovell
Created June 15, 2015 20:05
Show Gist options
  • Save christopherlovell/d5bc6a9f3f6da06e6580 to your computer and use it in GitHub Desktop.
Save christopherlovell/d5bc6a9f3f6da06e6580 to your computer and use it in GitHub Desktop.
How to... make RMarkdown generated HTML work in the strange_case Jekyll template
  1. copy the HTML to a new markdown script
  2. delete the following line from the <header>
<!--link href="data:text/css,%2F%2A%21%0A%20%2A%20Bootstrap%20v3%2E3%2E1%20%28http%3A%2F%2 .......
.....
.....
.....
...... 21important%7D%7D%40media%20print%7B%2Ehidden%2Dprint%7Bdisplay%3Anone%21important%7D%7D" rel="stylesheet" /-->
  1. Add the following to one of the <style> tags copied over.
code{color: inherit;background-color: rgba(0, 0, 0, 0.04);font-family:monospace;padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px;font-family:monospace,monospace;font-size:1em;}
    
pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0;}
    
pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment