fix(frontend): 修复 Shiki 主题选择器并添加真实预览
This commit is contained in:
@@ -10,6 +10,7 @@ const globalStyles = [
|
||||
|
||||
const markdownStyles = [
|
||||
new URL('../features/editor/VisualMarkdownEditor.vue', import.meta.url),
|
||||
new URL('../features/themes/ThemesView.vue', import.meta.url),
|
||||
new URL('../components/common/MarkdownContent.vue', import.meta.url),
|
||||
].map((path) => readFileSync(path, 'utf8')).join('\n')
|
||||
|
||||
@@ -36,4 +37,8 @@ describe('轻量动效基线', () => {
|
||||
expect(markdownStyles).toContain('var(--color-markdown-grid)')
|
||||
expect(markdownStyles).toContain('var(--color-markdown-marker)')
|
||||
})
|
||||
|
||||
it('不混用可能丢失后代选择器的 scoped global 写法', () => {
|
||||
expect(markdownStyles).not.toMatch(/:global\([^\n]+\)\s+\./)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user