Skip to content
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

Add option for printing single quotes in markup attributes #271

Closed
wants to merge 2 commits into from
Closed

Add option for printing single quotes in markup attributes #271

wants to merge 2 commits into from

Conversation

svenjacobs
Copy link

As discussed in issue #253, here's my work in progress of a new svelteMarkupSingleQuote option.

Comment on lines +393 to 394
// TODO: Replace quoteCharacter with quoteReplacementCharacter in attrNodeValue
const attrNodeValue = printAttributeNodeValue(path, print, quotes, node);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need some help here as I don't know how to replace characters in attrNodeValue. I'm not yet familiar with the Prettier API.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly asking for feedback / help here @Conduitry @dummdidumm @jamesbirtles

@svenjacobs
Copy link
Author

Still need some help here, please.

@svenjacobs
Copy link
Author

Last call before I'm going to close this PR. I'm currently not using Svelte in any project (anymore) so there's not much motivation and time from my side going forward with this. @micheal-parks since you referenced this issue, do you maybe want to continue working on it?

@svenjacobs svenjacobs closed this Oct 17, 2023
@svenjacobs svenjacobs deleted the markup-single-quote branch October 17, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant