move markdown example from /plugins to /examples

This commit is contained in:
Hakim El Hattab 2020-04-27 10:45:57 +02:00
parent 951f5d04c2
commit 0a1bcdf999
2 changed files with 11 additions and 14 deletions

View File

@ -4,12 +4,12 @@
<head>
<meta charset="utf-8">
<title>reveal.js - Markdown Demo</title>
<title>reveal.js - Markdown Example</title>
<link rel="stylesheet" href="../../dist/reveal.css">
<link rel="stylesheet" href="../../dist/theme/white.css" id="theme">
<link rel="stylesheet" href="../dist/reveal.css">
<link rel="stylesheet" href="../dist/theme/white.css" id="theme">
<link rel="stylesheet" href="../../lib/css/monokai.css">
<link rel="stylesheet" href="../lib/css/monokai.css">
</head>
<body>
@ -19,7 +19,7 @@
<div class="slides">
<!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines -->
<section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section>
<section data-markdown="markdown.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section>
<!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
<section data-markdown data-separator="---">
@ -88,7 +88,7 @@
<!-- Code -->
<section data-markdown>
<script type="text/template">
```php
```php [1|3-5]
public function foo()
{
$foo = array(
@ -109,7 +109,10 @@
</div>
</div>
<script src="../../dist/reveal.es5.js"></script>
<script src="../dist/reveal.es5.js"></script>
<script src="../dist/plugin/markdown.js"></script>
<script src="../dist/plugin/highlight.js"></script>
<script src="../dist/plugin/notes.js"></script>
<script>
@ -119,13 +122,7 @@
history: true,
center: true,
// Optional libraries used to extend on reveal.js
dependencies: [
{ 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' }
]
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ]
});
</script>