-
Notifications
You must be signed in to change notification settings - Fork 123
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
Literate cryptol parser not permissive enough #1501
Comments
I wasn't aware of this before looking it up: this is an extension to Pandoc's particular flavor of markdown called
I suppose that if we wanted to support this feature in its full generality, we would need to scan for any occurrence of |
I also think there may be a way to just tell pandoc to generate
instead. If that is possible, it might be a better solution for what I need. |
Fun -- with
with a space before |
Resolved in #1502. |
I have hit enough new issues with pandoc that I now believe the correct approach is to simply see if "cryptol" appears anywhere on the line. I'm getting all sorts of crazy stuff from different versions of pandoc with different command line args. |
Can you say a bit more about what your use case it? I am asking because it sounds like you are using |
Sure -- depending on the version of pandoc I'm using, I sometimes get
or sometimes
Or some other variation. Is it too permissive to have the criteria be "starts with three backticks and contains the substring 'cryptol'"? |
I understand that What you want is too permissive, because it prevents us from supporting Cryptol related environments that should be rendered but not interpreted by Cryptol. I don't mind changing what we do to support your use case, I just think we need to come up with something a bit more structured than just having "cryptol" somewhere in there. |
Makes sense. The original documents are in restructured text format, and we're using pandoc to translate to markdown. I can't remember why, but I'm pretty sure that Cryptol doesn't unlit the rst the way we want. Now that I think of it, I probably should double check that before complaining more here. Let me close this issue again and I'll reopen if needed. |
I have a literate Cryptol markdown document that uses the following syntax:
However, Cryptol only accepts
I suggest we add a case to cover the former syntax, since it's standard and is produced by
pandoc
in most cases.The text was updated successfully, but these errors were encountered: