Closed jd-solanki closed 3 years ago
Hi @ntotten then why <!-- prettier-ignore-start -->
is not working in my markdown file, am I doing something wrong?
I tried wrapping my code snippet in the above comment but it is still formatted by prettier.
Thanks for your time.
Regards.
I'm also trying to ignore block of code in htm file with
<!-- prettier-ignore-start -->
and
<!-- prettier-ignore-end -->
Not working at all.
This
<!-- prettier-ignore-start -->
description = "xxxxxxxxxxxx"
[cookieConsent]
message = "Este espaço utiliza \"cookies\" para melhorar a sua experiência de navegação."
dismiss = "Concordo"
learnMore = "Informações adicionais"
link = "/informacao-sobre-cookies"
theme = "dark-bottom"
[SeoCmsPage]
==
<!-- prettier-ignore-end -->
is transformed in:
<!-- prettier-ignore-start -->
description = "xxxxxxxxxxxx" [cookieConsent] message = "Este espaço utiliza \"cookies\" para
melhorar a sua experiência de navegação." dismiss = "Concordo" learnMore = "Informações adicionais" link =
"/informacao-sobre-cookies" theme = "dark-bottom" [SeoCmsPage] ==
<!-- prettier-ignore-end -->
TIA JL
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
summary
I want to preserve the line just before the comment in the code snippet of my markdown file
Github Repository to Reproduce Issue
I don't think we need github repo link
Steps To Reproduce:
Expected result
Its a markdown. I have used vue as wrapper for below code snippet but I am unable to nest code snippet in code snippet.
Actual result
Is it required?
Additional information
I also tried using
<!-- prettier-ignore-start -->
but didn't workedVS Code Version: 1.49.2
Prettier Extension Version: 5.7.1
OS and version: Linux Mint 20
Prettier Log Output