Merge pull request #392 from albertms10/docs-code-tag

docs: add line replace method for code tags
This commit is contained in:
Eric Liu 2020-11-07 12:25:13 -08:00 committed by GitHub
commit 3bc6587ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>