markup_fmt
markup_fmt copied to clipboard
Isssues with specific Svelte syntax
Issue I
<div style="line-height: {1}" />
Issue II
{#if $page.url.pathname.includes("/test")}
<slot/>
{:else}
<Background />
<Header />
<main>
<slot />
</main>
<Footer />
{ /if}
For Issue 1, that problem was caught by CSS formatter, not markup_fmt, but I don't think there're anything can do in CSS formatter since it's not valid CSS. However, it's also hard to do something to just "let CSS formatter allow this syntax".