Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何获取完整的html(预览的html)? #43

Open
wugy11 opened this issue Jan 26, 2018 · 2 comments
Open

如何获取完整的html(预览的html)? #43

wugy11 opened this issue Jan 26, 2018 · 2 comments

Comments

@wugy11
Copy link

wugy11 commented Jan 26, 2018

保存编辑的内容时,直接存解析后的html(点击“预览”生成的html),这样在显示内容时不需要对md解析了。

@Houfeng
Copy link
Owner

Houfeng commented Jan 26, 2018

//通过 mditor 实的 viewer 能拿到,如下

const html = mditor.viewer.html;
console.log(html);

@BanKnight
Copy link

话说api说明什么时候出呢,例如:原始内容以及转换后的内容
现在只能靠猜或者看代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants