add b3-typography to render plain text content
This commit is contained in:
parent
8b19031d08
commit
b42d86b17a
3 changed files with 8 additions and 10 deletions
|
@ -6,6 +6,8 @@
|
|||
import { onDestroy, onMount } from "svelte";
|
||||
import { version } from "./api";
|
||||
import { showMessage } from "siyuan";
|
||||
import Typo from "./libs/b3-typography.svelte";
|
||||
|
||||
export let name: string;
|
||||
export let i18n: any;
|
||||
|
||||
|
@ -43,9 +45,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Typo>
|
||||
<h2>Wellcome to plugin sample with vite & svelte</h2>
|
||||
<p>{@html i18n.makesure}</p>
|
||||
</div>
|
||||
</Typo>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<ul class="b3-list b3-list--background">
|
||||
<li class="b3-list-item">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconEdit"></use></svg>
|
||||
<span class="b3-list-item__text">
|
||||
<slot></slot>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
3
src/libs/b3-typography.svelte
Normal file
3
src/libs/b3-typography.svelte
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="item__readme b3-typography">
|
||||
<slot/>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue