1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Merge pull request #302 from Ma27/markdown-html-preview

Render HTML in Markdown during previews as well
This commit is contained in:
Harvey Kandola 2019-08-04 13:20:46 -04:00 committed by GitHub
commit f39be2a594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ export default Component.extend({
this.attachEditor(); this.attachEditor();
} else { } else {
this.set('pageBody',this.getBody()); this.set('pageBody',this.getBody());
let md = window.markdownit({ linkify: true }); let md = window.markdownit({ linkify: true, html: true });
let result = md.render(this.getBody()); let result = md.render(this.getBody());
this.set('pagePreview', result); this.set('pagePreview', result);