Skip to content

Commit

Permalink
add ams package to mathjax & tweak styles for math
Browse files Browse the repository at this point in the history
  • Loading branch information
MidAutumnMoon committed Aug 23, 2024
1 parent 9b07d77 commit a2db412
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deno.lock

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

11 changes: 10 additions & 1 deletion mdx.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ import RehypeHeadingToc from "./_plugins/RehypeHeadingToc.ts"
import RehypeMathjax from "rehype-mathjax"


const MathjaxOption
: NonNullable< Parameters<typeof RehypeMathjax>[0] > =
{
tex: {
// Apparently this is not deeply merged
packages: [ "base", "ams" ]
}
}

export default {

remarkPlugins: [
Expand All @@ -22,7 +31,7 @@ export default {
rehypePlugins: [
RehypeSlug,
RehypeHeadingToc,
RehypeMathjax,
[ RehypeMathjax, MathjaxOption ],
]

} satisfies lume_mdx.Options
2 changes: 2 additions & 0 deletions src/posts/2024/07/personal-blog-and-e-waste/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ $$

Inline $\LaTeX$ also works.

- An $\yen{10,000}$ test for recently $\xleftarrow{\text{added}}$ `ams` package.

*Charts are not used yet.*

# Github Flavored Markdown
Expand Down
17 changes: 17 additions & 0 deletions src/posts/2024/08/notes-on-modding-atelier-ryza-series/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 给“莱莎的炼金工房”打模组
date: '2024-08-23'
updated: '2024-08-23'
lang: zh
tags:
- note
- game
draft: true
---

<comp.Warn>
这篇文章仅仅是一篇笔记而已。作者没有下载、存储或者分发任何相关内容。
</comp.Warn>

说是模组,实际上最多只是修改贴图跟骨骼罢了。虽然莱莎很萌,但这个系列的玩家还没有多到能组建模组社区的程度吧。

1 change: 1 addition & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
}

& mjx-container {
@apply block;
& svg { @apply border-none; }
&:not( [display] ) { @apply inline-block align-middle; }
}
Expand Down

0 comments on commit a2db412

Please sign in to comment.