-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Emit on parse error #37
Comments
I agree, we need to completely refactor how the parsers work. I'll try to spend some time on this as soon as I have a chance |
Well, for YAML If it could be passed as a callback Another way would be a simple option like |
this was resolved in 3.0 |
Wow, cool! I've totally missed new release. Thanks a lot! |
So far if Gray Matter encounters Matter block, but unable to parse it (let's say, due to wrong escaping), it silently ignores it and outputs empty file.
It would be much better if Gray Matter instead emitted some event, so we can hook on it and log warning about invalid syntax, etc.
The text was updated successfully, but these errors were encountered: