-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Prevent breaking strings mid-word #518
Labels
enhancement
New feature or request
Comments
Would using the option YAML.stringify(obj, { singleQuote: true }) mystring: '[this is an svg of something or
other](https://cdn.abc.com/2022/11/18/1668788169568.abcde-abcdefhi-302x300.svg)' If that's not sufficient, you could submit a PR for an option like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We yamlify markdown, which often contains long-ish URLs. We would like to have the yaml not break those URLs up, so the yaml is easier to read, and so they can be searched for in our repo.
Example:
output:
Describe the solution you'd like
An option like:
Or maybe it could allow a list of regexes, in priority order, where the default (matching behaviour now, presumably) is:
And people like us would update it to
Describe alternatives you've considered
We don't want to disable or set
scalarOptions.fold.lineWidth
to something very high, because that'll effectively turn off folding completely. We do want folding, but we just want it to only break on whitespace.Additional context
This doesn't just apply to markdown, we also have this problem in other strings that use long format parameters.
The text was updated successfully, but these errors were encountered: