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

初始化mditor只有一种方式么? #44

Open
jiaju707 opened this issue Feb 3, 2018 · 1 comment
Open

初始化mditor只有一种方式么? #44

jiaju707 opened this issue Feb 3, 2018 · 1 comment

Comments

@jiaju707
Copy link

jiaju707 commented Feb 3, 2018

初始化mditor 只有一种方式么?
mditor = window.mditor = Mditor.fromTextarea(document.getElementById('md-editor'));

我现在只想用Parser去解析markdown怎么办到呢?

@Houfeng
Copy link
Owner

Houfeng commented Feb 3, 2018

var mditor = require("mditor");
var parser = new mditor.Parser();
var html = parser.parse("** Hello mditor! **");

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

2 participants