diff --git a/js/md.js b/js/md.js index 96893a6..b1c8511 100644 --- a/js/md.js +++ b/js/md.js @@ -48,7 +48,7 @@ var markdown_parser = function(str){ return ''+header.trim()+''; }], // images - ['/\\!\\[([^\\[]+)\\]\\(([^\\(]+)\\)/g', '\"\\1\"'], +// ['/\\!\\[([^\\[]+)\\]\\(([^\\(]+)\\)/g', '\"\\1\"'], // link ['/\\[([^\\[]+)\\]\\(([^\\(]+)\\)/g', '\\1'], // bold @@ -60,25 +60,25 @@ var markdown_parser = function(str){ // quote ['/\\:\\"(.*?)\\"\\:/g', '\\1'], // unordered list - ['/\\n\\*(.*)/g', function(item){ - return ''; - }], +// ['/\\n\\*(.*)/g', function(item){ +// return ''; +// }], // ordered list - ['/\\n[0-9]+\\.(.*)/g', function(item){ - return '
    \n
  1. '+item.trim()+'
  2. \n
'; - }], +// ['/\\n[0-9]+\\.(.*)/g', function(item){ +// return '
    \n
  1. '+item.trim()+'
  2. \n
'; +// }], // blockquote ['/\\n\\>(.*)/g', function(str){ return '
'+str.trim()+'
'; - }], - // paragraphs - ['/\\n[^\\n]+\\n/g', function(line){ - line = line.trim(); - if(line[0] === '<'){ - return line; - } - return '\n

'+line+'

\n'; }] + // paragraphs +// ['/\\n[^\\n]+\\n/g', function(line){ +// line = line.trim(); +// if(line[0] === '<'){ +// return line; +// } +// return '\n

'+line+'

\n'; +// }] ], fixes = [ ['/<\\/ul>\n