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

Unformatted style and script tags in html #234

Open
migliori opened this issue Jun 12, 2019 · 2 comments
Open

Unformatted style and script tags in html #234

migliori opened this issue Jun 12, 2019 · 2 comments
Labels

Comments

@migliori
Copy link

Describe the bug

<style> and <script> tags in html files are still formatted even if we add them to the unformatted tags list **To Reproduce** Steps to reproduce the behavior: Add a style tag to any html file with minified styles inside add "style" to the unformatted tags list beautify **Expected behavior** style should remain compressed **Error/Stack Traces** no error, but the style is beautified **System (please complete the following information):** - OS: Windows - Version: 10 **Additional context** Tested with https://playground.unibeautify.com/ and in Visual Code Studio. Disabling the "prettier" beautifier solves the problem, but I'd like to keep it enabled Many thanks for your great work
@issue-label-bot issue-label-bot bot added the bug label Jun 12, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.75. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@stevenzeck
Copy link
Contributor

stevenzeck commented Jul 10, 2019

I don't see an option in prettier to add HTML tags to unformatted. Your best bet is to use comments so Unibeautify ignores those sections:

<!-- unibeautify:enable -->

<!-- unibeautify:disable -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants