-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range rewrite #47
Comments
a builder/worker style may be more flexible, like |
Do you mean a
|
It could be less flexible: PrettyPrinterBuilder::new(column_width or config)
.with_actions(...)
.format(content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add an optional arg to current interface to perform certain action on source code ranges.
, where action is an enum defined in typstyle. It can be
ToMultiline
,ToSingleLine
,ToBlockEquation
,ToInlineEquation
,NoFormat
...typstyle will find the first ast node(in order traversal) which is contained by the provided range.
When certain action is not applicable, it will be sliently ignored
The text was updated successfully, but these errors were encountered: