(code)
| 46 | }; |
| 47 | |
| 48 | function escapeCode(code) { |
| 49 | return code |
| 50 | .replace(/&/g, '&') |
| 51 | .replace(/</g, '<') |
| 52 | .replace(/>/g, '>') |
| 53 | .replace(/"/g, '"') |
| 54 | .replace(/'/g, '''); |
| 55 | } |
| 56 | |
| 57 | module.exports = function(markdown) { |
| 58 | if (this && this.cacheable) { |