hashBlock.js 199 B

12345
  1. showdown.subParser('hashBlock', function (text, options, globals) {
  2. 'use strict';
  3. text = text.replace(/(^\n+|\n+$)/g, '');
  4. return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
  5. });