bespokejs / bespoke

DIY Presentation Micro-Framework

Home Page:http://markdalgleish.com/projects/bespoke.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

insert html code example

QIvan opened this issue · comments

Hello! I tried to use bespoke for presentation angularjs for my colleagues. But when i try to insert my html code bespoke removes html-tags =(
my code:

        pre.language-html 
          code.
            <head> sf</head>

with language-javascript it's the same result.

Sorry for my bad english...
Thanks!

i solved my question. It's option for task "jade" in build file

options: {
          pretty: true,
          filters:{
            escape: function( block ) {
                        return block
                          .replace( /&/g, '&amp;'  )
                          .replace( /</g, '&lt;'   )
                          .replace( />/g, '&gt;'   )
                          .replace( /"/g, '&quot;' )
                          .replace( /#/g, '&#35;'  )
                          .replace( /\\/g, '\\\\'  );
                          //.replace( /\n/g, '\\n'   );
                      }
          }
        }
      }
    },

and for insert to the prezentation

code
    include:escape ./app/index.html