BlackGlory / copycat

🌳 Copy content from web powerful than ever before.
https://chrome.google.com/webstore/detail/jdjbiojkklnaeoanimopafmnmhldejbg
MIT License
266 stars 35 forks source link

[Feature Request] format selected content #50

Closed tjx666 closed 9 months ago

tjx666 commented 9 months ago

For example github issue.

ref: https://prettier.io/docs/en/browser

BlackGlory commented 9 months ago

We already have this, what more do you need?

https://github.com/BlackGlory/copycat/blob/f6b59993d87d0b73ef350a82f3015a53f5f967eb/src/utils/format-html.ts#L4-L10

BlackGlory commented 9 months ago

Closed due to lack of meaningful information

tjx666 commented 9 months ago

@BlackGlory I want this extension can format markdown content and it's code block. Just like I use prettier to format markdown in vscode.

BlackGlory commented 9 months ago

I wouldn't consider formatting code blocks at all, it's a classic maintenance pitfall. If you have a need for language-specific formatting, I suggest you maintain your own fork.

For Markdown itself, Copycat already provides some configuration items. prettier uses the same parser under the hood and doesn't seem to provide any more meaningful options.