aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-11-07 08:03:22 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-11-07 08:03:22 -0500
commite7e941b66363a70e04fd994439f32611a6a0a136 (patch)
tree032c546a15b1cae7288df39409954d118e421567 /plugin
parent6afec76bf0f5d32da99d98624961df202e7334ff (diff)
downloadfosdem-2018-presentation-e7e941b66363a70e04fd994439f32611a6a0a136.tar
fosdem-2018-presentation-e7e941b66363a70e04fd994439f32611a6a0a136.tar.gz
add code slide to markdown example #682
Diffstat (limited to 'plugin')
-rw-r--r--plugin/markdown/example.html22
1 files changed, 19 insertions, 3 deletions
diff --git a/plugin/markdown/example.html b/plugin/markdown/example.html
index 0b07aa5..522d8ac 100644
--- a/plugin/markdown/example.html
+++ b/plugin/markdown/example.html
@@ -8,6 +8,8 @@
<link rel="stylesheet" href="../../css/reveal.css">
<link rel="stylesheet" href="../../css/theme/default.css" id="theme">
+
+ <link rel="stylesheet" href="../../lib/css/zenburn.css">
</head>
<body>
@@ -66,6 +68,22 @@
</script>
</section>
+ <!-- Code -->
+ <section>
+ <section data-markdown>
+ <script type="text/template">
+ ```php
+ public function foo()
+ {
+ $foo = array(
+ 'bar' => 'bar'
+ )
+ }
+ ```
+ </script>
+ </section>
+ </section>
+
</div>
</div>
@@ -80,14 +98,12 @@
history: true,
center: true,
- theme: Reveal.getQueryHash().theme,
- transition: Reveal.getQueryHash().transition || 'default',
-
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: '../../lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
+ { src: '../highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '../notes/notes.js' }
]
});