hashBlock.js 245 B

123456789
  1. /**
  2. * Created by Estevao on 11-01-2015.
  3. */
  4. showdown.subParser('hashBlock', function (text, options, globals) {
  5. 'use strict';
  6. text = text.replace(/(^\n+|\n+$)/g, '');
  7. return '\n\n~K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n';
  8. });