markup_fmt icon indicating copy to clipboard operation
markup_fmt copied to clipboard

Isssues with specific Svelte syntax

Open rojvv opened this issue 1 year ago • 1 comments

Issue I

<div style="line-height: {1}" />

Issue II

{#if $page.url.pathname.includes("/test")}
  <slot/> 
{:else}
  <Background /> 
  <Header /> 
  <main>
    <slot />
  </main> 
  <Footer />
{   /if}

rojvv avatar Sep 29 '24 16:09 rojvv

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".

g-plane avatar Sep 29 '24 23:09 g-plane