Skip to content

Commit

Permalink
Merge pull request #31 from TatooiNoyo/fixmd
Browse files Browse the repository at this point in the history
Fixed a typography issue with render markdown.
  • Loading branch information
ryan4yin authored Jun 27, 2024
2 parents 90030ff + 39b0d6d commit 085567d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@vuepress/bundler-vite": "2.0.0-rc.8",
"flowchart.ts": "^3.0.0",
"katex": "^0.16.9",
"markdown-it-cjk-breaks": "^2.0.0",
"mermaid": "^10.9.0"
}
}
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineUserConfig } from "vuepress";

import { removePwaPlugin } from "@vuepress/plugin-remove-pwa";
import { viteBundler } from '@vuepress/bundler-vite'
import cjk_breaks_plugin from 'markdown-it-cjk-breaks';

import theme from "./theme";

Expand All @@ -19,8 +20,11 @@ export default defineUserConfig({
plugins: [
removePwaPlugin({}),
],
extendsMarkdown: (md) => {
md.use(cjk_breaks_plugin);
},
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),
});
});
1 change: 1 addition & 0 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default hopeTheme({
figure: true,
flowchart: true,
gfm: true,
breaks: false,
imgLazyload: true,
imgSize: true,
include: true,
Expand Down

0 comments on commit 085567d

Please sign in to comment.