Skip to content

Commit 3509e5c

Browse files
committed
chore: 优化 timeline 组件样式
1 parent 7dea59e commit 3509e5c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.vitepress/theme/markdown/timeline.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import container from 'markdown-it-container'
55

66
type ContainerArgs = [typeof container, string, { render: RenderRule }]
77

8-
function MarkdownItTimeline(
9-
klass: string,
10-
md: MarkdownIt,
11-
): ContainerArgs {
8+
function MarkdownItTimeline(klass: string, md: MarkdownIt): ContainerArgs {
129
return [
1310
container,
1411
klass,
@@ -19,7 +16,7 @@ function MarkdownItTimeline(
1916
if (token.nesting === 1) {
2017
// opening tag
2118
const title = md.renderInline(info)
22-
return `<div class='timeline-dot'><span class='timeline-dot-title'>${
19+
return `<div class='timeline-dot'><span class='timeline-dot-title title'>${
2320
title
2421
}</span>\n`
2522
}

0 commit comments

Comments
 (0)