Closed jav-ed closed 11 months ago
Describe the bug
Here is a snippet of my index.astro
<!-- ------------------------------- Note -------------------------------- --> <Note />
After pnpm exec astro-i18next generate
pnpm exec astro-i18next generate
the output will look like:
<!>--; --; --; --; --; --; --; --; --; --; --; --; --; --; --; -- - Note--; --; --; --; --; --; --; --; --; --; --; --; --; --; --; --; -- > <Note>/>
Now this is not valid astro code anymore.
Expected behavior
Keep the comments as comments and do not interpret them as something else.
Context (please complete the following information):
astro-i18next
astro
Possible fixes At the step where the astro files in the pages' folder are modified, make sure to detect the comments and do not modify them
Describe the bug
Here is a snippet of my index.astro
After
pnpm exec astro-i18next generate
the output will look like:
Now this is not valid astro code anymore.
Expected behavior
Keep the comments as comments and do not interpret them as something else.
Context (please complete the following information):
astro-i18next
version: 1.0.0-beta.21astro
version: 2.10.1Possible fixes At the step where the astro files in the pages' folder are modified, make sure to detect the comments and do not modify them