1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Markdownでスライドを速攻作成するスニペット

Last updated at Posted at 2020-04-20
  1. Markdownでメモを取る
  2. メモの先頭に下記のスニペットを貼る
  3. メモのファイル拡張子をhtmlにする
  4. ブラウザでhtmlファイルを開く
<!DOCTYPE html><meta charset="utf-8"><title>x</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/css/reveal.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/css/theme/solarized.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.8.2/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/js/reveal.min.js"></script>
<script>onload=function(){b=document.body;s='section>';a='<'+s;e='</'+s;c='<div class="';
d='</div>';m=b.innerHTML.replace(/\n\s*\n\s*\n/gm,'<<>>').replace(/<<>>/gm,'\n\n'+e+a+'\n\n');
h=c+'reveal">'+c+'slides">'+a+marked(m)+e+d+d;b.innerHTML=h.replace(/<a /g,'<a target="_blank" ');
Reveal.initialize();document.title=/([^>]*?)<\/h1>/m.exec(h)[1];}</script>

なお、ページ区切りは水平方向のみ対応。
2連続の空行でページ区切りになる。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?