aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/Utils.js
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2016-12-18 07:03:16 -0800
committerChristine Dodrill <me@christine.website>2016-12-18 07:03:16 -0800
commite1a6482dc61afee78ae23d92510db41b703c534f (patch)
treeaf7b79a1336efae0f0e36d3db25573694ce6b3d7 /frontend/src/Utils.js
parent62ffa5f0089f5f11c069f017b0dc69df6141de34 (diff)
downloadxesite-e1a6482dc61afee78ae23d92510db41b703c534f.tar.xz
xesite-e1a6482dc61afee78ae23d92510db41b703c534f.zip
frontend: make mdify return rendered html
Diffstat (limited to 'frontend/src/Utils.js')
-rw-r--r--frontend/src/Utils.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/frontend/src/Utils.js b/frontend/src/Utils.js
index f464cf2..942f75c 100644
--- a/frontend/src/Utils.js
+++ b/frontend/src/Utils.js
@@ -1,9 +1,6 @@
// Module App.BlogEntry
-exports.mdify = function(id) {
+exports.mdify = function(corpus) {
var converter = new showdown.Converter()
- elem = document.getElementById(id);
- md = elem.innerHTML;
- elem.innerHTML = converter.makeHtml(md);
- return "done :)";
+ return converter.makeHtml(corpus);
}