Skip to content

Instantly share code, notes, and snippets.

@emitanaka
Created September 11, 2019 21:30
Show Gist options
  • Save emitanaka/e1acc97b44a0512ee08ec806f0503fbc to your computer and use it in GitHub Desktop.
Save emitanaka/e1acc97b44a0512ee08ec806f0503fbc to your computer and use it in GitHub Desktop.
xaringan ninjutsu remark.js bug
---
output:
xaringan::moon_reader:
css: "ninjutsu"
seal: false
---
class: split-40
count: false
.column[.content[
The square bracket in tibble output breaks this.
]]
.column[.content[
```
# A tibble: 1,386 x 6
season number production_code episode_title guest_star role
<chr> <list> <chr> <chr> <chr> <chr>
1 1 <chr [… 7G02 Bart the Genius Marcia Wall… Edna Krab…
```
]]
---
class: split-40
count: false
.column[.content[
Super duper hacky method.
]]
.column[.content[
```
# A tibble: 1,386 x 6
season number production_code episode_title guest_star role
<chr> <list> <chr> <chr> <chr> <chr>
1 1 <chr [… 7G02 Bart the Genius Marcia Wall… Edna Krab…
```
<span style="visibility: hidden;">]]]</span>
---
class: split-40
count: false
.column[.content[
But works when square bracket is removed.
]]
.column[
```
# A tibble: 1,386 x 6
season number production_code episode_title guest_star role
&lt;chr&gt; &lt;list&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt;
1 1 &lt;chr … 7G02 Bart the Genius Marcia Wall… Edna Krab…
```
]
---
class: split-40
count: false
.column[.content[
This hacky method works.
]]
.column[.content[]
```
# A tibble: 1,386 x 6
season number production_code episode_title guest_star role
&lt;chr&gt; &lt;list&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt;
1 1 &lt;chr [… 7G02 Bart the Genius Marcia Wall… Edna Krab…
```
]]
---
class: split-40
count: false
.column[.content[
This breaks the code up :/
]]
<div class="column">
```
# A tibble: 1,386 x 6
season number production_code episode_title guest_star role
&lt;chr&gt; &lt;list&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt;
1 1 &lt;chr [… 7G02 Bart the Genius Marcia Wall… Edna Krab…
```
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment