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

Parsing WikiCode to HTML #166

Closed
Srijancse-zz opened this issue Sep 25, 2016 · 5 comments
Closed

Parsing WikiCode to HTML #166

Srijancse-zz opened this issue Sep 25, 2016 · 5 comments

Comments

@Srijancse-zz
Copy link

Is there a way, I can use mwparserfromhell, to parse wikitocode to HTML?

@lahwaacz
Copy link
Contributor

No. See #161.

@earwig
Copy link
Owner

earwig commented Sep 25, 2016

Parsoid might be best here.

@Srijancse-zz
Copy link
Author

The thing is, parsoid is quite heavy and using it for offline editing, doesn't suits! Since, mwparserfromhell, is a powerful parser, will someone be working on the HTML parsing in future?

@earwig
Copy link
Owner

earwig commented Sep 25, 2016

I don't think so. mwparserfromhell's output structure is designed to be easy to manipulate for bots or tools, especially those that need to re-serialize it as wikitext with minimal changes and no other dependencies.

Building HTML would require a lot of logic we don't have yet, like actually expanding templates onwiki somehow. I guess #100 exists, though.

@Srijancse-zz
Copy link
Author

I don't think so. mwparserfromhell's output structure is designed to be easy to manipulate for bots or tools, especially those that need to re-serialize it as wikitext with minimal changes and no other dependencies.

I agree. Actually, I was building an offlineextension for wikieditor, and was looking for ways to use mwparserfromhell. But, I agree, that it seems to be tough to build HTML using it!

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

No branches or pull requests

3 participants