Skip to content

Commit c3efdd5

Browse files
committed
fix: do not add spacing around binding
1 parent 4f74581 commit c3efdd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/stringify/mdc-remark.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export function mdcRemark(options?: Options | undefined | null) {
6464
node.type = mdcTextComponentType as typeof node.type
6565

6666
// ensure :br and inline components are separated by a space
67+
// binding is a special case, with it's secial syntax, we don't need to do anything
68+
if ((node as unknown as { name: string }).name === 'binding') {
69+
return
70+
}
6771
if (index && parent && parent.children) {
6872
if (index > 0 && parent.children[index - 1].type === 'text') {
6973
const text = parent.children[index - 1] as Text

0 commit comments

Comments
 (0)