tailwindcss
解决排版问题
https://github.com/tailwindlabs/tailwindcss-typography
-
npm install -D @tailwindcss/typography
-
然后加入 css文件
@import "tailwindcss";
+ @plugin "@tailwindcss/typography";
- 给要排版的元素加上class prose
<article class="prose prose-slate">{{ markdown }}</article>