From a60965ebac369204cfa445eaa339db0ce61e119a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 21 Mar 2012 12:45:09 +0530 Subject: [PATCH] doclistview fix --- js/wn/misc/tools.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 js/wn/misc/tools.js diff --git a/js/wn/misc/tools.js b/js/wn/misc/tools.js new file mode 100644 index 0000000000..5699f9640f --- /dev/null +++ b/js/wn/misc/tools.js @@ -0,0 +1,7 @@ +wn.markdown = function(txt) { + if(!wn.md2html) { + wn.require('lib/js/lib/showdown.js'); + wn.md2html = new Showdown.converter(); + } + return wn.md2html.makeHtml(txt); +} \ No newline at end of file