Skip to content

Commit

Permalink
obsidian(gyunseo laptop): M astro.config.mjs package-lock.json packag…
Browse files Browse the repository at this point in the history
…e.json src/content/blog/data-communications-and-networking-chapter-4-lans-part2.md src/layouts/Layout.astro, A src/assets/image/render-math-in-astro-markdown-pages-with-katex-1696235073061.jpeg src/content/blog/render-math-in-astro-markdown-pages-with-katex.md 2023-10-02 17:25:20

Affected files:
astro.config.mjs
package-lock.json
package.json
src/assets/image/render-math-in-astro-markdown-pages-with-katex-1696235073061.jpeg
src/content/blog/data-communications-and-networking-chapter-4-lans-part2.md
src/content/blog/render-math-in-astro-markdown-pages-with-katex.md
src/layouts/Layout.astro
  • Loading branch information
Gyunseo Lee authored and Gyunseo Lee committed Oct 2, 2023
1 parent a8e914e commit 29dbc03
Show file tree
Hide file tree
Showing 7 changed files with 1,350 additions and 73 deletions.
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
updateImageLinkNode,
updateLinkNode,
} from "./src/utils/updateMarkdownASTNodeURLValue";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
// https://astro.build/config
export default defineConfig({
site: "https://gyunseo.xyz", // replace this with your deployed dom:wain
Expand All @@ -21,6 +23,8 @@ export default defineConfig({
markdown: {
remarkPlugins: [
remarkToc,
// to support a math syntax in markdown
remarkMath,
[
remarkCollapse,
{
Expand All @@ -32,6 +36,8 @@ export default defineConfig({
// convert Markdown Link Node URL Value,
updateLinkNode,
],
// to render math in HTML with KaTex
rehypePlugins: [rehypeKatex],
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
Expand Down
Loading

0 comments on commit 29dbc03

Please sign in to comment.