add support for data-trim attribute on code elements (closes #419)
This commit is contained in:
@@ -332,11 +332,11 @@ 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:
|
||||
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
|
||||
<section>
|
||||
<pre><code>
|
||||
<pre><code data-trim>
|
||||
(def lazy-fib
|
||||
(concat
|
||||
[0 1]
|
||||
|
||||
Reference in New Issue
Block a user