-
Notifications
You must be signed in to change notification settings - Fork 38
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
Key n
is mapped to FALSE
in simple example
#122
Comments
Okay, I just realised there are some special values in YAML. I'd prefer to not force the user to quote the data in the YAML file. I can I somehow tell |
This is a quirk of yaml 1.1. It's removed for yaml 1.2, but efforts to get that up and going aren't going so fast. |
It might be possible to write a custom boolean handler. I've not tried that. The parser returns a "bool#yes" and "bool#no" for these tag types. It might be possible to modify this behavior. Try writing a custom handler and post your code here. If that works, I'll see if it can become an option to ignore in the parser output. |
This seems to work:
|
Thanks for your answers. But it seems that only works because the input has |
That slipped through in my example. I just tried it and upstream it's emitted a T/F for this, so I don't see an easy way. It'll require compiler modification. |
Okay, thanks for trying. I'll leave this issue open, but feel free to close it if you think this functionality is unlikely to be supported. |
It is the plurality of issues opened. The other being requests for yaml 1.2 (which doesn't have the n/y issue). I've started an experiment to use the libfyaml library and see if it solves both problems. |
Related on SO, for the record (if it helps): https://stackoverflow.com/questions/75595253/rmarkdownyaml-front-matter-converts-some-parameter-names-to-true |
{yaml}
package version is 2.3.6.The text was updated successfully, but these errors were encountered: