From d2309e0917bd019f91288d48c54804d4a561c079 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Fri, 28 Nov 2014 07:19:30 +0300 Subject: [PATCH] Exposed helpers to simplify custom renderers --- CHANGELOG.md | 1 + lib/index.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a82a492..c7dd144 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Added footnotes support. - Added definitions lists support. +- Exposed `./common/utils` to simplify custom renderer write. 1.4.1 / 2014-11-13 diff --git a/lib/index.js b/lib/index.js index a7e952d..cad0448 100644 --- a/lib/index.js +++ b/lib/index.js @@ -135,3 +135,6 @@ Remarkable.prototype.renderInline = function (src, env) { module.exports = Remarkable; + +// Expose helpers, useful for custom renderer functions +module.exports.utils = require('./common/utils');