Closed innovate-invent closed 2 years ago
You should have asked me 😶. I added support to produce Markdown output to the JMESPath site generation. That’s how I converted the proposals to Markdown. It gets you most of the way.
Sorry for not making that clear before.
No worries, this gave me a chance to review and edit the document anyway. The markdown was pretty minimal.
Took some time to copy out everything from https://jmespath.org/specification.html into a document that can act as a source of truth as well as a source of generated documentation.
This document can be parsed with
^(.*)(?=;;)(?:;; ?(.*?)(\\?) *)$|^(.*(?!;;))$
. Group 1 or 4 are the rules with comments, Group 2 is the markdown, and group 3 is the presence of the trailing\
character when used inline.