diff options
| author | Christine Dodrill <me@christine.website> | 2016-12-18 07:03:16 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2016-12-18 07:03:16 -0800 |
| commit | e1a6482dc61afee78ae23d92510db41b703c534f (patch) | |
| tree | af7b79a1336efae0f0e36d3db25573694ce6b3d7 /frontend/src/Utils.js | |
| parent | 62ffa5f0089f5f11c069f017b0dc69df6141de34 (diff) | |
| download | xesite-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.js | 7 |
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); } |
