aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 15:07:03 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 15:07:03 +0100
commiteada86c8fdda71ae88b3cf2b93cedc368ac9323c (patch)
tree327ac887e721ddb1385bc37d12175f0eaca2ed18 /README.md
parent02a6b0515e03773352e93f84bbee651d640f33ff (diff)
downloadfosdem-2018-presentation-eada86c8fdda71ae88b3cf2b93cedc368ac9323c.tar
fosdem-2018-presentation-eada86c8fdda71ae88b3cf2b93cedc368ac9323c.tar.gz
recommend using textarea wrapper for inline markdown #1780
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index b5e15ba..0aa0f29 100644
--- a/README.md
+++ b/README.md
@@ -105,17 +105,17 @@ The presentation markup hierarchy needs to be `.reveal > .slides > section` wher
### Markdown
-It's possible to write your slides using Markdown. To enable Markdown, add the `data-markdown` attribute to your `<section>` elements and wrap the contents in a `<script type="text/template">` like the example below.
+It's possible to write your slides using Markdown. To enable Markdown, add the `data-markdown` attribute to your `<section>` elements and wrap the contents in a `<textarea data-template>` like the example below.
This is based on [data-markdown](https://gist.github.com/1343518) from [Paul Irish](https://github.com/paulirish) modified to use [marked](https://github.com/chjj/marked) to support [GitHub Flavored Markdown](https://help.github.com/articles/github-flavored-markdown). Sensitive to indentation (avoid mixing tabs and spaces) and line breaks (avoid consecutive breaks).
```html
<section data-markdown>
- <script type="text/template">
+ <textarea data-template>
## Page title
A paragraph with some text and a [link](http://hakim.se).
- </script>
+ </textarea>
</section>
```