I recently encountered a “bug” where new stylesheets I created were having no effect whatsoever. After hours of trial/errors, I eventually find out that I accidentally added a $:/tags/Stylesheet tag on a tiddler with a css variable not enclosed in curly brackets. Same behavior with single curly bracket.
It seems like the CSS parsing fail for ALL the following stylesheet (in the order displayed by the dropdown of the tag).
This can break a whole wiki if the field list-before of such a tiddler is blank. This behavior is present on both the current version and the pre-release.
IMO the parser should close open brackets (by default) to prevent that. What do you think?
If you want to break your wiki, import this tiddler :
This tiddler will break your wiki.tid (137 Bytes)
Even the safe mode cant restore the correct CSS behavior.
EDIT : I opened an issue on github, let me know if I should close it.
EDIT2 : You can find broken stylesheets with this wikitext :
<style>.debug{display: block;}</style>
<$list filter="[tag[$:/tags/Stylesheet]]" counter=nth>
<style>
{{!!text}}
.debug-<<nth>>{display:none;}
</style>
<$link class={{{[[debug-]][<nth>][[ debug]]+[join[]]}}}/>
</$list>