Skip to content

改为使用 Astro 发布内容

| 发布于 2025-07-30

翻阅了大部分博客后,选择抄 Velari 的方案。

移除了引述块的默认斜体

代码高亮

public class FastIOTest {
	public static void main(String[] args) throws IOException{
		//建立流标识器的常用方法
		StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));	
	}
}
// ...
import {
  transformerNotationDiff,
  transformerNotationHighlight,
  transformerNotationWordHighlight,
} from "@shikijs/transformers";

export default defineConfig({
  // ...
  markdown: {
    remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
    shikiConfig: {
      // For more themes, visit https://shiki.style/themes
      themes: { light: "min-light", dark: "night-owl" },
      defaultColor: false,
      wrap: false,
      transformers: [
        transformerFileName(),
        transformerNotationHighlight(),
        transformerNotationWordHighlight(),
        transformerNotationDiff({ matchAlgorithm: "v3" }),
      ],
    },
  },
  // ...
}

公式渲染

行内 LaTeX\LaTeX 渲染

块级

(0.35)10=(0.011)20.375×2=0.7500.75×2=1.510.5×2=11\begin{aligned} (0.35)_{10}= (0.011)_{2} \\ 0.375 \times 2 = 0.75 \to 0 \\ 0.75 \times 2 = 1.5 \to 1 \\ 0.5 \times 2 = 1 \to 1 \end{aligned}


Previous Post
一分半六个久坐放松动作
Next Post
CS速成课笔记