(text)
| 955 | } |
| 956 | |
| 957 | var _DoCodeBlocksBefore = function (text) { |
| 958 | // |
| 959 | // mk2: support code block |
| 960 | // ```javascript |
| 961 | // console.log('markdown'); |
| 962 | // ``` |
| 963 | text = text.replace(/```(\w*\n*)((.|\n)*?)```/g, |
| 964 | function (wholeMatch, prepadding, codeblock) { |
| 965 | return '```' + prepadding + _EncodeCode(codeblock).replace(/^\s+|\s+$/g, '') + '```'; |
| 966 | } |
| 967 | ); |
| 968 | return text; |
| 969 | } |
| 970 | |
| 971 | var _DoCodeBlocks = function(text) { |
| 972 | // |
no test coverage detected