From f4f2497d23ff26caba7673b5de0bc8f61b69efca Mon Sep 17 00:00:00 2001 From: Yukai Huang Date: Thu, 13 Oct 2016 15:59:22 +0800 Subject: [PATCH] Expose parseMeta function --- public/js/extra.js | 3 ++- public/js/index.js | 1 + public/js/pretty.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/extra.js b/public/js/extra.js index 1a1caf8..e19a35d 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -1083,5 +1083,6 @@ module.exports = { scrollToHash: scrollToHash, owner: owner, updateLastChangeUser: updateLastChangeUser, - updateOwner: updateOwner + updateOwner: updateOwner, + parseMeta: parseMeta }; diff --git a/public/js/index.js b/public/js/index.js index 82d3ced..4d74532 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -52,6 +52,7 @@ var scrollToHash = extra.scrollToHash; var owner = extra.owner; var updateLastChangeUser = extra.updateLastChangeUser; var updateOwner = extra.updateOwner; +var parseMeta = extra.parseMeta; var historyModule = require('./history'); var writeHistory = historyModule.writeHistory; diff --git a/public/js/pretty.js b/public/js/pretty.js index c1c2b4a..c521120 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -8,6 +8,7 @@ var generateToc = extra.generateToc; var smoothHashScroll = extra.smoothHashScroll; var postProcess = extra.postProcess; var updateLastChange = extra.updateLastChange; +var parseMeta = extra.parseMeta; var preventXSS = require('./render').preventXSS; var markdown = $("#doc.markdown-body");