/** * Remove one level of line-leading tabs or spaces */ showdown.subParser('outdent', function (text) { 'use strict'; // attacklab: hack around Konqueror 3.5.4 bug: // "----------bug".replace(/^-/g,"") == "bug" text = text.replace(/^(\t|[ ]{1,4})/gm, '~0'); // attacklab: g_tab_width // attacklab: clean up hack text = text.replace(/~0/g, ''); return text; });