"use strict";
var pruMD = require('./pru-md.js');
var hljs = require('highlight.js');
var showdown = require('showdown');
var converter = new showdown.Converter();
var extHL = function () {
var myext1 = {
type: 'output',
regex: /markdown/g,
replace: 'showdown'
};
return [myext1];
}
pruMD.probar({parse : function(content) { return converter.makeHtml(content); },
name : function() { return 'showdown'; }}).then(function(out) { console.log(out); });
Y una tabla
| h1 |
h2 |
h3 |
| 100 |
[a][1] |
![b][2] |
| foo |
bar |
baz |