aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-01-08 10:49:40 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-01-08 10:49:40 +0100
commitddd0e85f4196fb37e336157b92bf58f0365f061c (patch)
treec4ff58a560c42c6513e5225954dd72a756839a48 /README.md
parentee877845d8c1c03b55d218f0f28b352c52ccba6e (diff)
parentc3919756f1a50fe696d7b690c64f0c9e7f5f6c62 (diff)
downloadfosdem-2018-presentation-ddd0e85f4196fb37e336157b92bf58f0365f061c.tar
fosdem-2018-presentation-ddd0e85f4196fb37e336157b92bf58f0365f061c.tar.gz
Merge branch 'master' of github.com:hakimel/reveal.js into dev
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 79c5755..c37b454 100644
--- a/README.md
+++ b/README.md
@@ -596,15 +596,18 @@ Reveal.addEventListener( 'fragmenthidden', function( event ) {
### Code syntax highlighting
+<<<<<<< HEAD
By default, Reveal is configured with [highlight.js](https://highlightjs.org/) 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](https://highlightjs.org/) 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>