orchidhq / Orchid

Build and deploy beautiful documentation sites that grow with you
https://orchid.run
GNU General Public License v3.0
513 stars 53 forks source link

Fails more gracefully when title contains a quote #315

Closed jmfayard closed 4 years ago

jmfayard commented 4 years ago

Orchid was failing hard on me

java.lang.IllegalStateException: Invalid text after key title on line 1. Make sure to terminate the value or add a comment (#).
        at com.moandjiezana.toml.Toml.read(Toml.java:140)
        at com.eden.orchid.impl.compilers.parsers.TOMLParser.parse(TOMLParser.kt:26)

https://gradle.com/s/3k4zxqfquol7a

It took me some times to find the bug, I was using a quote in my title

+++
title = 'Chers amis, ce que j'aimerais pouvoir vous dire'
+++

It would be good if this could be handled better. I remember hugo was exactly as bad in this respect.