소스 검색

partial(showdown.js): enabled output modifiers

Estevão Soares dos Santos 10 년 전
부모
커밋
d996b4438d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/showdown.js

+ 3 - 0
src/showdown.js

@@ -245,6 +245,9 @@ showdown.Converter = function (converterOptions) {
     text = text.replace(/~T/g, '~');
 
     // Run output modifiers
+    showdown.helper.forEach(globals.outputModifiers, function (ext) {
+      text = showdown.subParser('runExtension')(ext, text);
+    });
     text = parsers.outputModifiers(text, options, globals);
 
     return text;