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

Add "mistune" for Markdown #5

Merged
merged 2 commits into from
Jun 7, 2016
Merged

Add "mistune" for Markdown #5

merged 2 commits into from
Jun 7, 2016

Conversation

smnslwl
Copy link
Contributor

@smnslwl smnslwl commented Jun 5, 2016

No description provided.

@geekan
Copy link
Owner

geekan commented Jun 6, 2016

What's the difference among the python-markdown projects?

@smnslwl
Copy link
Contributor Author

smnslwl commented Jun 6, 2016

Well the most popular implementations of Markdown parsers in pure Python are Markdown, Markdown2 and mistune, and mistune seems to be the fastest of the lot.

@geekan
Copy link
Owner

geekan commented Jun 6, 2016

From this link: lepture/mistune#1
It points out Misaka is the fastest one.

Parsing the Markdown Syntax document 1000 times...
Mistune: 12.9425s
Misaka: 0.537176s
Markdown: 47.7091s
Markdown2: 80.5163s
cMarkdown: 0.680664s

What's the profit of implementing via pure Python?

@smnslwl
Copy link
Contributor Author

smnslwl commented Jun 6, 2016

Well, pure Python libraries are far more easier to install than ones that are interfaces/bindings to C libraries. One may not always be able to install the underlying libraries, for example if you do not have root access to a machine. I think mistune strikes a happy balance between speed and ease of use.

@geekan
Copy link
Owner

geekan commented Jun 7, 2016

Looks good. Merge now.

@geekan geekan merged commit c4a8544 into geekan:master Jun 7, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants