getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
326 stars 1.39k forks source link

Version in XML code snippets causes a line break #10252

Open adinauer opened 1 month ago

adinauer commented 1 month ago

Steps to Reproduce

Screenshot 2024-06-04 at 07 49 59

Expected Result

No extra linebreak

Actual Result

A line break is added to XML snippets. See screenshot. Might be happening in other places as well.

Additional Info

Docs code:

<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-spring-boot-starter</artifactId>
    <version>{{@inject packages.version('sentry.java.spring-boot', '4.2.0') }}</version>
</dependency>
a-hariti commented 1 month ago

that's due to automatic code block formatting using Prettier @adinauer

adinauer commented 1 month ago

How can we fix it? Is there a way to disable the auto formatter for this sample?