Browse Source

add case 4

Hiroki Aihara 1 month ago
parent
commit
10d570c5d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/remark-lsx/src/client/services/renderer/lsx.ts

+ 1 - 0
packages/remark-lsx/src/client/services/renderer/lsx.ts

@@ -53,6 +53,7 @@ export const remarkPlugin: Plugin = () => (tree) => {
       //   case 1: lsx(prefix=/path..., ...)    => prefix="/path"
       //   case 2: lsx(/path, ...)              => prefix="/path"
       //   case 3: lsx(/foo, prefix=/bar ...)   => prefix="/bar"
+      //   case 4: lsx(/foo bar, ...)           => prefix="/foo bar"
       if (attributes.prefix == null) {
         const attrEntries = Object.entries(attributes);