Closed BernhardBln closed 10 months ago
Hi, it seems like this was reported on the wrong repo. This is for Liquid+HTML. You might be looking for prettier/prettier.
You are right, sorry for this.
Whoever stumbles over this, the solution/workaround is to add a newline before prettier-ignore-end.
Describe the bug prettier-ignore-start / -end not respected in markdown files.
Unformatted source
Expected output See unformatted source.
Actual output
Debugging information
Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9) Java version: 11.0.2, vendor: Oracle Corporation OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
Just create some empty directory somewhere, and create in there one file
Readme.md
with the unformatted source from above, and apom.xml
file with this content:pom.xml
andReadme.md
should be next to each other. Inside of this directory, runmvn spotless:apply
Additional Context If the
<-- TOC -->
comments are the problem - they are part of the generated TOC (I'm using IntelliJ to create/update the TOC), so I cannot remove them.