Skip to content

Commit

Permalink
fixed vuepress theme v64 dark/light mode issue
Browse files Browse the repository at this point in the history
Signed-off-by: George M Dias <[email protected]>
  • Loading branch information
georgedias committed Dec 18, 2024
1 parent 46f881f commit 3007b20
Showing 1 changed file with 7 additions and 63 deletions.
70 changes: 7 additions & 63 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ export default hopeTheme({
imgLazyload: true,
imgSize: true,
include: true,
mark: true,
// imgMark: true,
imgMark: {
/** lightmode only IDs */
light: ["light"],
/** darkmode only IDs */
dark: ["dark"],
},
mermaid: true,
playground: {
presets: ["ts", "vue"],
Expand Down Expand Up @@ -80,68 +86,6 @@ export default hopeTheme({
components: ["Badge", "VPCard"],
},

// Use "mark: true" to allow pictures to be marked by #light or #dark
// suffix, letting them be displayed under the appropriate color mode
markdownImage: {
figure: true,
lazyload: true,
mark: true,
size: true,
},

markdownTab: {
codeTabs: true,
tabs: true,
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
align: true,
attrs: true,
// install chart.js before enabling it
// chart: true,
component: true,
demo: true,
// install echarts before enabling it
// echarts: true,
// install flowchart.ts before enabling it
flowchart: true,
gfm: true,
include: true,
// install katex before enabling it
// katex: true,
// install mathjax-full before enabling it
// mathjax: true,
mark: true,
mermaid: true,
// plantuml: true,
playground: {
presets: ["ts", "vue"],
},
// install sandpack-vue3 before enabling it
// sandpack: true,
// spoiler: true,
stylize: [
{
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommended",
};
},
},
],
sub: true,
sup: true,
// tasklist: true,
vPre: true,
// install @vue/repl before enabling it
// vuePlayground: true,
},

// install reveal.js before enabling it
// revealjs: {
// plugins: ["highlight", "math", "search", "notes", "zoom"],
Expand Down

0 comments on commit 3007b20

Please sign in to comment.