We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06340c commit 2ffa625Copy full SHA for 2ffa625
docs/src/components/ComponentApi.svelte
@@ -168,17 +168,12 @@
168
{#if prop.description}
169
{@const parsed = parseDescription(prop.description)}
170
{#if parsed.mainDescription}
171
- {#each parsed.mainDescription.split("\n") as line}
172
- <div class="description">
173
- {@html line
174
- .replace(/\</g, "<")
175
- .replace(/\>/g, ">")
176
- .replace(/`(.*?)`/g, "<code>$1</code>") +
177
- (line.trim().endsWith(".") || line.trim() === ""
178
- ? ""
179
- : ".")}
180
- </div>
181
- {/each}
+ <div class="description">
+ {@html parsed.mainDescription
+ .replace(/\</g, "<")
+ .replace(/\>/g, ">")
+ .replace(/`(.*?)`/g, "<code>$1</code>")}
+ </div>
182
{/if}
183
{#if parsed.exampleCode}
184
<div
0 commit comments