This commit is contained in:
2025-02-26 11:03:21 +08:00
parent 056a40b31f
commit 01ae14b445
3 changed files with 14 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
## 标题 ## 标题
h1到h6,一共六级标题。 `h1``h6`,一共六级标题。
```html ```html
<h1>标题 1</h1> <h1>标题 1</h1>
@@ -74,10 +74,14 @@ p {
`text-indent: 2em;` 表示首行缩进 2 个字符(单位不是 px而是 em `text-indent: 2em;` 表示首行缩进 2 个字符(单位不是 px而是 em
## 任务 ## 任务
完成《白鹭》散文的排版,要求:
- 标题:字号 32px颜色黑色; 标题和段落的简单美化。
- 每个段落字号 28px颜色#333),行间距 40px
### 要求
完成《白鹭》散文的排版:
- 标题:使用 `h1` 标签,设置字号 32px颜色黑色;
- 每个段落:设置字号 28px颜色#333),行间距 40px首行缩进两字符
### 文字材料 ### 文字材料
白鹭 白鹭

View File

@@ -9,6 +9,7 @@ export default defineConfig({
template: "./index.html", template: "./index.html",
}, },
source: { source: {
include: [/node_modules[\\/]marked[\\/]/],
entry: { entry: {
index: "./src/main.ts", index: "./src/main.ts",
}, },
@@ -26,8 +27,10 @@ export default defineConfig({
chunkSplit: { chunkSplit: {
strategy: "split-by-experience", strategy: "split-by-experience",
forceSplitting: { forceSplitting: {
"lib-ui": /node_modules[\\/]naive-ui/, "lib-ui": /node_modules[\\/]naive-ui[\\/]/,
"lib-cm": /node_modules[\\/]@codemirror/, "lib-cm": /node_modules[\\/]@codemirror[\\/]/,
"lib-marked": /node_modules[\\/]marked[\\/]/,
"lib-hljs": /node_modules[\\/]highlight\.js[\\/]/,
}, },
}, },
}, },

View File

@@ -114,7 +114,7 @@ watch(step, render)
} }
.markdown-body pre code { .markdown-body pre code {
text-wrap: auto; white-space: normal;
} }
.codeblock-action { .codeblock-action {