A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):
- Headers
- Links
- Bold
- Emphasis
- Deletions
| var bodyHtml = document.body.innerHTML; | |
| function a() { | |
| var date = Date.now(); | |
| document.body.innerHTML = Math.random().toString() + 'test'; | |
| console.log('render ' + (Date.now() - date) + 'ms'); | |
| setTimeout(a, 0); | |
| } | |
| function b() { | |
| var date = Date.now(); | |
| document.body.innerHTML = bodyHtml; |