elm-verify-examples icon indicating copy to clipboard operation
elm-verify-examples copied to clipboard

Extract examples from the README

Open mgold opened this issue 8 years ago • 3 comments

It would be helpful if examples from the README were extracted into their own tests, probably in a Readme.elm module. I think if you looked for backtick code fences with elm on the end, the parsing shouldn't be too hard. You can also have a flag in the JSON to enable/disable this.

See this README which has some examples that could easily be converted into the --> style.

mgold avatar Jun 17 '17 16:06 mgold

That's an awesome idea!

stoeffel avatar Jun 17 '17 18:06 stoeffel

it should extract examples from any markdown file, not just from the Readme

stoeffel avatar Jun 17 '17 19:06 stoeffel

Sure, let it take a list of markdown files in the JSON file.

mgold avatar Jun 17 '17 23:06 mgold

This is completed in #58 as far as I can tell. Feel free to reopen if there is something more missing here.

gampleman avatar Oct 20 '23 12:10 gampleman