theNewDynamic / language-hugo-vscode

Adds syntax highlighting to Hugo files in VS Code
https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode
Apache License 2.0
64 stars 20 forks source link

Formating goes wrong if apostrophe between backticks in comment. #22

Closed divinerites closed 3 years ago

divinerites commented 3 years ago

Problem with d'accueil

1 - double quote and with apostrophe = OK

{{ "<!-- Hero Area Image d'accueil -->" | safeHTML }}

2 - backticks and without apostrophe = OK

{{ `<!-- Hero Area Image d accueil -->` | safeHTML }}

3 - backticks and with apostrophe = Problem

{{ `<!-- Hero Area Image d'accueil -->` | safeHTML }}
Capture d’écran 2021-05-13 à 14 21 50 Capture d’écran 2021-05-13 à 14 21 33 Capture d’écran 2021-05-13 à 14 23 29
budparr commented 3 years ago

@divinerites the fix will be published shortly. Thanks for bringing it up!

divinerites commented 3 years ago

hey, thank YOU regis & bud for this great great tool. It's a real corner case (and found thru a nasty hugo bug). Nothing mainstream I guess :-)

divinerites commented 3 years ago

Hello, I updated to the v1.3.1. But it seems that it doesn't solve my exact use case. Not sure why.

Capture d’écran 2021-05-14 à 15 13 30