Closed elliot-nelson closed 4 years ago
This change is now live. Thanks again!
Your comment is fair - I came up with this one while working on https://github.com/elliot-nelson/sywac-style-chunky (a style I've been tinkering with that I'll eventually add to the Styles list in the docs).
I think being able to insert ${this.lineSep}
is better than \n
, but there might be a better API for it (perhaps an explicit last argument, like fn(str, settings)
, so it doesn't break arrow functions).
but there might be a better API for it (perhaps an explicit last argument, like
fn(str, settings)
, so it doesn't break arrow functions)
I like that idea.
SUMMARY
Add an explanation and some examples of how to access
outputSettings
from style hooks, and why you might do so.DETAILS
Like it says on the tin. This might actually be an unintended feature, but I think it's useful!