Skip to content

Commit f0d3d8b

Browse files
committed
docs: fix code fence
1 parent e4992a9 commit f0d3d8b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ register(TextSelection, 'text-selection', [], { shadow: true });
103103
<span slot="heading">My Heading</span>
104104
<span slot="content">Some content goes here.</span>
105105
</text-section>
106+
```
106107

107108
### Declarative Shadow DOM (serializable option)
108109

@@ -114,13 +115,10 @@ register(MyComponent, 'my-element', [], {
114115
serializable: true
115116
});
116117

117-
// Usage with getHTML() for SSR
118118
const el = document.querySelector('my-element');
119119
const html = el.getHTML({ serializableShadowRoots: true });
120120

121-
// Test serializable shadow root
122-
console.log(el.shadowRoot.serializable); // true
123-
```
121+
console.log(el.shadowRoot.serializable);
124122
```
125123

126124
### Static Properties

0 commit comments

Comments
 (0)