Skip to content

Commit 82da9b7

Browse files
committed
fix code highlight style broken when enable markmap
1 parent 100cb02 commit 82da9b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

themes/hugo-coder/layouts/_default/baseof.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797

9898
{{ if .Params.isMarkupEnabled }}
9999
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>
100+
<style>
101+
code[class*="language-"], pre[class*="language-"] {
102+
text-shadow: none !important;
103+
font-size: initial !important;
104+
}
105+
</style>
100106
{{ end }}
101107

102108
{{ range .Site.Params.custom_css }}

0 commit comments

Comments
 (0)