aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWendy Smoak <wsmoak@gmail.com>2015-09-13 09:14:12 -0400
committerWendy Smoak <wsmoak@gmail.com>2015-09-13 09:14:12 -0400
commitd6d4c68013f2d77d7eb4c967c6500885c333955e (patch)
tree9664ae62ed911dee1824fb30930eda1e865cda58 /README.md
parent0c971b06e4f14a6093c8dcb5feb6b704f3906b99 (diff)
downloadfosdem-2018-presentation-d6d4c68013f2d77d7eb4c967c6500885c333955e.tar
fosdem-2018-presentation-d6d4c68013f2d77d7eb4c967c6500885c333955e.tar.gz
Add the data-noescape attribute and example
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 573b195..3137f5d 100644
--- a/README.md
+++ b/README.md
@@ -582,15 +582,15 @@ Reveal.addEventListener( 'fragmenthidden', function( event ) {
### Code syntax highlighting
-By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) for code syntax highlighting. Below is an example with clojure code that will be syntax highlighted. When the `data-trim` attribute is present surrounding whitespace is automatically removed.
+By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) for code syntax highlighting. Below is an example with clojure code that will be syntax highlighted. When the `data-trim` attribute is present, surrounding whitespace is automatically removed. HTML will be escaped by default. To avoid this, for example if you are using `<mark>` to call out a line of code, add the `data-noescape` attribute to the `<code>` element.
```html
<section>
- <pre><code data-trim>
+ <pre><code data-trim data-noescape>
(def lazy-fib
(concat
[0 1]
- ((fn rfib [a b]
+ <mark>((fn rfib [a b]</mark>
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
</code></pre>
</section>