-
Notifications
You must be signed in to change notification settings - Fork 6
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
Any way to make library safer? #19
Comments
If you want something safer and more Haskelly I'd recommend my pure Haskell commonmark library (commonmark on Hackage; commonmark-extensions will give you GitHub extensions). jgm/commonmark-hs on GitHub Since writing that I haven't had much use for the cmark wrapper, so I'm not personally inclined to put much time into it. |
I would be inclined to follow @jgm's lead here! :) |
That said, my guess is that there's probably a simple fix possible for the issue noted here. |
I just threw together this library, which aims to have a more correct-by-construction AST that's easy to transform (which isn't very easy in |
I was trying to write a test generator that generated some random markdown. I decided to start with the
Node
type since it seemed easier than generating valid markdown text first and parsing it. I found that if you construct an apparently invalid markdown:Node Nothing PARAGRAPH [Node Nothing DOCUMENT mempty]
, runningnodeToHtml
against it results in aSIGSEGV
and crashes the entire program.Either
?The text was updated successfully, but these errors were encountered: