Permalink
Browse files

namespace

  • Loading branch information...
1 parent 4457b1c commit b7c063ef0e5ee874cedd32e853c374dba2ec114a @kwmiebach kwmiebach committed Jun 15, 2010
Showing with 5 additions and 1 deletion.
  1. +1 −1 test.html
  2. +4 −0 textile/textile.js
View
@@ -15,7 +15,7 @@
<script src='textile/textile.js'></script>
<script>
function do_convert() {
- var html = convert(document.getElementById('textile').value);
+ var html = convert_textile(document.getElementById('textile').value);
document.getElementById('preview').innerHTML=html;
html = html.replace(/&/g,"&amp;").replace(/</g,"&lt;");
document.getElementById('htmlp').innerHTML=tag("pre",'',html);
View
@@ -5,6 +5,7 @@
* ben@ben-daglish.net (with thanks to John Hughes for improvements)
* Issued under the "do what you like with it - I take no respnsibility" licence
****************************************/
+function convert_textile(t) {
var inpr,inbq,inbqq,html;
var aliases = new Array;
@@ -151,3 +152,6 @@ function make_attr(s) {
function qat(a,v){return ' '+a+'="'+v+'"';}
function tag(t,a,c) {return "<"+t+a+">"+c+"</"+t+">";}
function stp(b){if(b){inbqq=0;}if(inpr){html+="<\/p>"+le;inpr=0;}if(inbq && !inbqq){html+="<\/blockquote>"+le;inbq=0;}}
+
+return convert(t);
+}

0 comments on commit b7c063e

Please sign in to comment.