Skip to content

Commit

Permalink
use gfm instead of markdown_github
Browse files Browse the repository at this point in the history
This will address #45
  • Loading branch information
zkamvar committed Oct 26, 2018
1 parent bc02196 commit dc1d64e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 27 deletions.
2 changes: 1 addition & 1 deletion R/render_new_rmds_to_md.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ render_new_rmds_to_md <- function(dir = "content/post",
for (b in to_build) {
rmd <- b
rmarkdown::render(rmd,
rmarkdown::md_document(variant = "markdown_github",
rmarkdown::md_document(variant = "gfm",
preserve_yaml = TRUE ))
}
}else{
Expand Down
6 changes: 3 additions & 3 deletions content/post/test-buttons.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_collapsible&stacked
<p>Click on the button to toggle between showing and hiding content.</p>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Simple collapsible</button>
<div id="demo" class="collapse">
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</div>
</div>

Expand Down
33 changes: 10 additions & 23 deletions content/post/test-buttons.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,28 @@
---
title: "Test collapse button"
author: "Thibaut Jombart"
authors: ["Thibaut Jombart", "Janetta Skarp", "Zhian N. Kamvar", "Alexander Spina", "Patrick Keating"]
authors: "Thibaut Jombart"
date: 2018-10-24
licenses: CC-BY
categories: "case study"
slug: button-test
image: img/highres/graduation-1965.jpg
showonlyimage: true
---

Here is an attempt at collapse button, taken from:

<https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_collapsible&stacked=h>

<!-- This one will work: -->

<!-- <div class="container"> -->
<!-- <h2>Simple Collapsible</h2> -->
<!-- <p>Click on the button to toggle between showing and hiding content.</p> -->
<!-- <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Simple collapsible</button> -->
<!-- <div id="demo" class="collapse"> -->
<!-- Lorem ipsum dolor sit amet, consectetur adipisicing elit, -->
<!-- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, -->
<!-- quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. -->
<!-- </div> -->
<!-- </div> -->



<h2>
Simple Collapsible
</h2>
<p>
Click on the button to toggle between showing and hiding content.
</p>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">
Simple collapsible
</button>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Simple
collapsible</button>

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat.

0 comments on commit dc1d64e

Please sign in to comment.