pystitch / stitch

Write reproducible reports in Markdown
https://pystitch.github.io
MIT License
441 stars 13 forks source link

BUG: Smarter chunk-option parser #42

Closed TomAugspurger closed 8 years ago

TomAugspurger commented 8 years ago

My hacky little one breaks if an option's value has has comma in it, e.g. fig.cap="My chunk, captioned",

TomAugspurger commented 8 years ago

I suspect https://docs.python.org/3.5/library/tokenize.html and https://docs.python.org/3.5/library/token.html#token.OP will do it. It handles quotes.