Commit Graph

3 Commits

Author SHA1 Message Date
leaysgur dc335d1071 fix(oxfmt): Temporarily disable the override for js-in-xxx (not ready yet) (#19043)
Unfortunately...

Once override a built-in for `markdown`, it applies to all embedded formatting within that file!

This means that overrides occur with js-in-**vue**-in-markdown, and since we haven't addressed this yet, the code breaks.

````md
# MD

```vue
<!-- VUE -->
<script>
  // JS
</script>

<template>
  <li v-for="function _(IT_BREAKS_HERE 💥) {} in items"></li>
</template>
````
2026-02-09 08:59:38 +00:00
leaysgur 5ea5bda86c fix(oxfmt): Handle isSingleJsxExpressionStatementInMarkdown() check for js-in-md (#19042) 2026-02-09 08:59:37 +00:00
leaysgur 7d2b8c3ec2 test(oxfmt): Add tests for js-in-xxx plugin (#18913)
Added API tests and CLI tests for js-in-(markdown|mdx) plugin.

For now, Vue tests are useless, but will be useful if we support it.
2026-02-06 05:50:05 +00:00