Skip to content

Commit

Permalink
fix: citation css migration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Jul 3, 2024
1 parent f3beee2 commit 77e1075
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/src/utils/storage/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,17 @@ export class MigrateService {
`#resume-preview [data-scope="cross-ref"][data-part="definitions"] {`
)
.replace(
/#vue-smart-pages-preview\s+li\.crossref-item p\s*{/g,
/#vue-smart-pages-preview\s+li\.crossref-item\s+p\s*{/g,
`#resume-preview [data-scope="cross-ref"][data-part="definition"] p {`
)
.replace(
/(#vue-smart-pages-preview\s+li\.crossref-item::marker\s*{[^}]*})/g,
(match) =>
match.replace(
/content:\s*attr\(\s*data-caption\s*\)\s*;/g,
"content: attr(data-label);"
)
)
.replace(
/#vue-smart-pages-preview\s+li\.crossref-item::marker\s*{/g,
`#resume-preview [data-scope="cross-ref"][data-part="definition"]::marker {`
Expand Down

0 comments on commit 77e1075

Please sign in to comment.