mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Merge pull request #392 from albertms10/docs-code-tag
docs: add line replace method for code tags
This commit is contained in:
commit
3bc6587ee7
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@
|
||||||
</StructuredListCell>
|
</StructuredListCell>
|
||||||
<StructuredListCell>
|
<StructuredListCell>
|
||||||
{#each prop[1].description.split('\n') as line}
|
{#each prop[1].description.split('\n') as line}
|
||||||
<div class="description">{line}.</div>
|
<div class="description">
|
||||||
|
{@html line.replace(/`(.*?)`/g, '<code>$1</code>')}.
|
||||||
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</StructuredListCell>
|
</StructuredListCell>
|
||||||
</StructuredListRow>
|
</StructuredListRow>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue