Skip to content

Commit

Permalink
recommend using textarea wrapper for inline markdown hakimel#1780
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel authored and Tobias committed Feb 22, 2018
1 parent 780830f commit 07368e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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>
```

0 comments on commit 07368e0

Please sign in to comment.