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 Markdown #4

Open
rshah opened this issue Oct 27, 2017 · 4 comments
Open

Parsing Markdown #4

rshah opened this issue Oct 27, 2017 · 4 comments

Comments

@rshah
Copy link

rshah commented Oct 27, 2017

is it possible to use this library to parse Markdown?

@silmeth
Copy link

silmeth commented Oct 27, 2017

It should be possible to build a Markdown parser using this library (as it is possible to parse json – I’ve successfully built a sample toy Json parser using better-parse).

But for any production use-case I’d rather go for a dedicated Markdown parser library instead of crafting my own using parser combinators. Just as I use Jackson and its kotlin modules in work, instead of my example linked above.

Not sure what are good libraries for Markdown on JVM (as I never neeeded to parse it), but I’d guess something klike intellij-markdown would be a good choice.

@h0tk3y
Copy link
Owner

h0tk3y commented Oct 29, 2017

@rshah Defining a Markdown grammar does not seem to be a practical way of parsing Markdown, see http://roopc.net/posts/2014/markdown-cfg/
I think I can try and come up with a demo parser if I have any success.

@h0tk3y
Copy link
Owner

h0tk3y commented Oct 29, 2017

@silmeth Can I reference your Json parser in the examples section? It would also be kind of you to update it to the 0.3.1 release.

@silmeth
Copy link

silmeth commented Oct 29, 2017

@h0tk3y Sure. I wrote it to familiarize with your library and decided to put it on Github as a reference for anyone who similarly wants to see how such a grammar might be written, so I’d be really flattered if the original library referenced my toy example. Thanks. :)

I’ll look into the new release today. Not sure if I bump up the version immediately (are there any big API changes? new features that a simplish json parser should use?), though. Also, if you’d like to do it yourself, I don’t mind accepting a PR. :)

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