Skip to content

Instantly share code, notes, and snippets.

@emitanaka
Created September 11, 2019 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emitanaka/7f1e285d4c93d1d5bc7be584e58e2e0a to your computer and use it in GitHub Desktop.
Save emitanaka/7f1e285d4c93d1d5bc7be584e58e2e0a to your computer and use it in GitHub Desktop.
remark.js bug - unclosed square bracket
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<style>
.column1, .column2 {
position: absolute;
top:0;
width:50%;
}
.column1 { left:0; }
.column2 { left:50%; }
</style>
</head>
<body>
<textarea id="source">
.column1[
This slide works all fine
]
.column2[
in splitting to two.
]
---
.column1[
Adding un-closed square brackets breaks it.
]
.column2[
```
[
```
]
</textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create();
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
window.dispatchEvent(new Event('resize'));
});
</script>
</body>
</html>
@emitanaka
Copy link
Author

Screen Shot 2019-09-12 at 8 13 47 am

Screen Shot 2019-09-12 at 8 13 56 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment