mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
docs: add line replace method for code tags
This commit is contained in:
parent
8c30452169
commit
9cd1533a8a
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@
|
|||
</StructuredListCell>
|
||||
<StructuredListCell>
|
||||
{#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}
|
||||
</StructuredListCell>
|
||||
</StructuredListRow>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue