mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
Merge pull request #302 from Ma27/markdown-html-preview
Render HTML in Markdown during previews as well
This commit is contained in:
commit
f39be2a594
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export default Component.extend({
|
|||
this.attachEditor();
|
||||
} else {
|
||||
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());
|
||||
|
||||
this.set('pagePreview', result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue