add support for data-trim attribute on code elements (closes #419)

This commit is contained in:
Hakim El Hattab
2013-04-27 15:50:33 -04:00
parent 07d0ed8ba6
commit a764c21cd1
3 changed files with 19 additions and 12 deletions

View File

@ -208,7 +208,8 @@
<p>
Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
</p>
<pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
<pre><code data-trim contenteditable style="font-size: 18px; margin-top: 20px;">
Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
</code></pre>
@ -228,7 +229,7 @@
<section>
<h2>Pretty Code</h2>
<pre><code contenteditable>
<pre><code data-trim contenteditable>
function linkify( selector ) {
if( supports3DTransforms ) {