CloudCannon / bookshop

📚 A component development workflow for static websites.
MIT License
249 stars 21 forks source link

Allow quotes in TOML comments #48

Closed bglw closed 3 years ago

bglw commented 3 years ago

Currently the TOML narrator package produces bad output on lines like the following:

title: "Hello World" #: A "simple" title

where it produces:

title--bookshop_comment = "A "simple" title"
title: "Hello World" #: A "simple" title

but it should produce:

title--bookshop_comment = "A \"simple\" title"
title: "Hello World" #: A "simple" title
Yoda-Soda commented 3 years ago

For the correct output should it not be...

title--bookshop_comment = "A \"simple\" title"
title = "Hello World" #: A "simple" title
bglw commented 3 years ago

Yes indeed it should be. YAML brain strikes again.