add b3-typography to render plain text content

This commit is contained in:
frostime 2023-05-23 15:02:56 +08:00
parent 8b19031d08
commit b42d86b17a
3 changed files with 8 additions and 10 deletions

View file

@ -6,6 +6,8 @@
import { onDestroy, onMount } from "svelte"; import { onDestroy, onMount } from "svelte";
import { version } from "./api"; import { version } from "./api";
import { showMessage } from "siyuan"; import { showMessage } from "siyuan";
import Typo from "./libs/b3-typography.svelte";
export let name: string; export let name: string;
export let i18n: any; export let i18n: any;
@ -43,9 +45,10 @@
</div> </div>
</div> </div>
<div> <Typo>
<h2>Wellcome to plugin sample with vite & svelte</h2>
<p>{@html i18n.makesure}</p> <p>{@html i18n.makesure}</p>
</div> </Typo>
</div> </div>

View file

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

View file

@ -0,0 +1,3 @@
<div class="item__readme b3-typography">
<slot/>
</div>