diff --git a/wiki.js b/wiki.js index c115c4e..84fcbc5 100755 --- a/wiki.js +++ b/wiki.js @@ -223,6 +223,9 @@ var macro = { json: 'text', text: function(context, text){ return $('
').text(text).html() }, + // XXX + nl2br: function(context, text){ return $('
').html(text.replace(/\n/g, '
\n')) }, + wikiword: function(context, text){ return setWikiWords(text, true, this.__include_marker__) }, },