<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss-style.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:version="2.0"><channel><title>RyuChan</title><description>🌸 轻盈、优雅、纯净 —— 用文字与图片记录生活与创意 feedId:172229198194932736+userId:166528077360436224</description><link>https://hub.xiaozhangya.xin/</link><language>zh</language><item><title>《电锯人：蕾塞篇》观后感</title><link>https://hub.xiaozhangya.xin/blog/chainsaw_man/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/chainsaw_man/</guid><description>蕾塞的一生，被命运束缚，那句“老实说，我也没去过学校”，是她无声的叹息，也是未竟的孤独。</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/chainsaw_man/&quot;&gt;https://hub.xiaozhangya.xin/blog/chainsaw_man/&lt;/a&gt;&lt;/blockquote&gt; &lt;p&gt;&lt;strong&gt;&lt;code&gt;“…TO BE HONEST…&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&lt;code&gt;I’VE NEVER BEEN TO SCHOOL EITHER…”&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://picbed.xiaozhangya.xin/blog/chainsawman2.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;这一句，蕾塞的 &lt;strong&gt;&lt;code&gt;告白&lt;/code&gt;&lt;/strong&gt;， 带着深深的遗憾和无奈。她的 &lt;strong&gt;&lt;code&gt;命运&lt;/code&gt;&lt;/strong&gt; 从一开始就被注定，作为恶魔的使者，她无法选择自己的路。与电次的短暂关系，原本是她的一丝挣扎与希望，但最终她依然选择 &lt;strong&gt;&lt;code&gt;赴约&lt;/code&gt;&lt;/strong&gt; ，而不是安全 &lt;strong&gt;&lt;code&gt;撤离&lt;/code&gt;&lt;/strong&gt;。 这并非单纯的爱情，而是对命运的无声妥协。&lt;/p&gt;
&lt;p&gt;在咖啡馆附近的小巷里，她被玛奇玛找到，最终被天使恶魔斩杀。她的死亡，象征着她无力逃脱命运的束缚。那句 &lt;strong&gt;&lt;code&gt;“老实说，我也没去过学校”&lt;/code&gt;&lt;/strong&gt;， 不仅是她对自己无知的 &lt;strong&gt;&lt;code&gt;自嘲&lt;/code&gt;&lt;/strong&gt;， 更是她无法选择自己人生的 &lt;strong&gt;&lt;code&gt;痛苦写照&lt;/code&gt;&lt;/strong&gt;。&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://picbed.xiaozhangya.xin/blog/chainsawman.jpg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Wed, 08 Apr 2026 17:26:00 GMT</pubDate></item><item><title>Mathematical Formulas in Markdown</title><link>https://hub.xiaozhangya.xin/blog/mathematics-examples/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/mathematics-examples/</guid><description>A demonstration of various mathematical formulas rendered using LaTeX within Markdown.</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/mathematics-examples/&quot;&gt;https://hub.xiaozhangya.xin/blog/mathematics-examples/&lt;/a&gt;&lt;/blockquote&gt; &lt;p&gt;This document serves as a test for rendering mathematical formulas in Markdown using &lt;code&gt;$$&lt;/code&gt; delimiters.&lt;/p&gt;
&lt;h2&gt;Basic Algebra&lt;/h2&gt;
&lt;p&gt;Let&amp;#39;s start with some fundamental algebraic expressions.&lt;/p&gt;
&lt;p&gt;The quadratic formula is given by:
$$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$&lt;/p&gt;
&lt;p&gt;A simple linear equation:
$$y = mx + c$$&lt;/p&gt;
&lt;p&gt;Expansion of a binomial square:
$$(a+b)^2 = a^2 + 2ab + b^2$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Calculus&lt;/h2&gt;
&lt;p&gt;Here are some common expressions from calculus.&lt;/p&gt;
&lt;p&gt;The limit definition of a derivative:
$$f&amp;#39;(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$&lt;/p&gt;
&lt;p&gt;A definite integral:
$$\int_{a}^{b} f(x) dx$$&lt;/p&gt;
&lt;p&gt;The Taylor series expansion of $e^x$ around $x=0$:
$$e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Trigonometry&lt;/h2&gt;
&lt;p&gt;Some basic trigonometric identities.&lt;/p&gt;
&lt;p&gt;Pythagorean identity:
$$\sin^2\theta + \cos^2\theta = 1$$&lt;/p&gt;
&lt;p&gt;Angle addition formula for sine:
$$\sin(\alpha + \beta) = \sin\alpha\cos\beta + \cos\alpha\sin\beta$$&lt;/p&gt;
&lt;p&gt;Euler&amp;#39;s formula:
$$e^{i\theta} = \cos\theta + i\sin\theta$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Statistics and Probability&lt;/h2&gt;
&lt;p&gt;Formulas commonly used in statistics and probability.&lt;/p&gt;
&lt;p&gt;The formula for the mean ($\mu$) of a set of $n$ numbers $x_1, x_2, \ldots, x_n$:
$$\mu = \frac{1}{n} \sum_{i=1}^{n} x_i$$&lt;/p&gt;
&lt;p&gt;The probability density function of a normal distribution:
$$f(x | \mu, \sigma^2) = \frac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}$$&lt;/p&gt;
&lt;p&gt;Bayes&amp;#39; theorem:
$$P(A|B) = \frac{P(B|A)P(A)}{P(B)}$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Linear Algebra&lt;/h2&gt;
&lt;p&gt;Examples from linear algebra.&lt;/p&gt;
&lt;p&gt;A 2x2 matrix:
$$A = \begin{pmatrix} a &amp;amp; b \ c &amp;amp; d \end{pmatrix}$$&lt;/p&gt;
&lt;p&gt;The determinant of a 2x2 matrix:
$$\det(A) = ad - bc$$&lt;/p&gt;
&lt;p&gt;Matrix multiplication of two matrices A and B:
$$C = AB$$&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Physics&lt;/h2&gt;
&lt;p&gt;A couple of well-known physics equations.&lt;/p&gt;
&lt;p&gt;Einstein&amp;#39;s mass-energy equivalence:
$$E = mc^2$$&lt;/p&gt;
&lt;p&gt;Newton&amp;#39;s second law of motion:
$$F = ma$$&lt;/p&gt;
&lt;p&gt;This should provide a good test of how various mathematical formulas are rendered.&lt;/p&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Sat, 31 May 2025 00:00:00 GMT</pubDate></item><item><title>Adding Comment Systems to RyuChan</title><link>https://hub.xiaozhangya.xin/blog/adding-comment-systems/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/adding-comment-systems/</guid><description>A comprehensive guide on how to integrate the Waline comment system into your RyuChan blog</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/adding-comment-systems/&quot;&gt;https://hub.xiaozhangya.xin/blog/adding-comment-systems/&lt;/a&gt;&lt;/blockquote&gt; &lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;RyuChan 博客现已支持通过配置文件集中管理评论系统，无需在页面手动引入组件或硬编码参数，只需在 &lt;code&gt;ryuchan.config.yaml&lt;/code&gt; 中配置即可。&lt;/p&gt;
&lt;h2&gt;集中式评论系统配置&lt;/h2&gt;
&lt;h3&gt;步骤 1：配置评论系统&lt;/h3&gt;
&lt;p&gt;在 &lt;code&gt;ryuchan.config.yaml&lt;/code&gt; 中找到 &lt;code&gt;comments&lt;/code&gt; 配置块：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;comments:
  enable: true         # 是否启用评论
  type: giscus        # 可选 giscus/waline/none
  giscus:
    repo: &amp;quot;xxx/xxx&amp;quot;
    repoId: &amp;quot;xxx&amp;quot;
    category: &amp;quot;General&amp;quot;
    categoryId: &amp;quot;xxx&amp;quot;
    mapping: &amp;quot;pathname&amp;quot;
    lang: &amp;quot;zh-CN&amp;quot;
    inputPosition: &amp;quot;top&amp;quot;
    reactionsEnabled: &amp;quot;1&amp;quot;
    emitMetadata: &amp;quot;0&amp;quot;
    loading: &amp;quot;lazy&amp;quot;
  waline:
    serverURL: &amp;quot;https://your-waline-server&amp;quot;
    lang: &amp;quot;zh-CN&amp;quot;
    emoji:
      - &amp;quot;https://unpkg.com/@waline/emojis@1.1.0/weibo&amp;quot;
      - &amp;quot;https://unpkg.com/@waline/emojis@1.1.0/bilibili&amp;quot;
    meta: [&amp;quot;nick&amp;quot;, &amp;quot;mail&amp;quot;, &amp;quot;link&amp;quot;]
    requiredMeta: []
    reaction: false
    pageview: false
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;enable: true/false&lt;/code&gt; 控制是否全站显示评论。&lt;/li&gt;
&lt;li&gt;&lt;code&gt;type: giscus/waline/none&lt;/code&gt; 控制评论系统类型，&lt;strong&gt;同一时间只会启用一个&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;详细参数请参考各自官方文档。&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;步骤 2：自动渲染，无需手动引入&lt;/h3&gt;
&lt;p&gt;你无需在页面或模板中手动引入 &lt;code&gt;&amp;lt;Giscus /&amp;gt;&lt;/code&gt; 或 &lt;code&gt;&amp;lt;Waline /&amp;gt;&lt;/code&gt; 组件，Ryuchan 已自动根据配置渲染对应评论系统。只需专注于内容创作和配置维护。&lt;/p&gt;
&lt;h3&gt;步骤 3：切换或禁用评论系统&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;切换评论系统：只需修改 &lt;code&gt;type&lt;/code&gt; 字段为 &lt;code&gt;giscus&lt;/code&gt; 或 &lt;code&gt;waline&lt;/code&gt;，保存后自动生效。&lt;/li&gt;
&lt;li&gt;禁用评论系统：将 &lt;code&gt;enable&lt;/code&gt; 设为 &lt;code&gt;false&lt;/code&gt; 即可。&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2&gt;进阶：自定义 Waline 组件&lt;/h2&gt;
&lt;p&gt;如需自定义 Waline 组件样式或参数，可参考如下代码（已内置于 RyuChan）：&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;---
// src/components/comments/Waline.astro
interface Props {
  serverURL: string;
  lang?: string;
  dark?: string;
  emoji?: string[];
  meta?: string[];
  requiredMeta?: string[];
  reaction?: boolean;
  pageview?: boolean;
}
const {
  serverURL,
  lang = &amp;quot;zh-CN&amp;quot;,
  dark = &amp;quot;html[data-theme-type=&amp;#39;dark&amp;#39;]&amp;quot;,
  emoji = [&amp;quot;https://unpkg.com/@waline/emojis@1.1.0/weibo&amp;quot;, &amp;quot;https://unpkg.com/@waline/emojis@1.1.0/bilibili&amp;quot;],
  meta = [&amp;quot;nick&amp;quot;, &amp;quot;mail&amp;quot;, &amp;quot;link&amp;quot;],
  requiredMeta = [],
  reaction = false,
  pageview = false,
} = Astro.props;
---
&amp;lt;div id=&amp;quot;waline-container&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://unpkg.com/@waline/client@v3/dist/waline.css&amp;quot; /&amp;gt;
&amp;lt;script type=&amp;quot;module&amp;quot; define:vars={{
  serverURL, lang, dark, emoji, meta, requiredMeta, reaction, pageview,
}}&amp;gt;
  import { init } from &amp;quot;https://unpkg.com/@waline/client@v3/dist/waline.js&amp;quot;;
  let walineInstance;
  async function mountWaline() {
    if (walineInstance) await walineInstance.destroy();
    walineInstance = init({
      el: &amp;quot;#waline-container&amp;quot;,
      serverURL, path: location.pathname, lang, dark, emoji, meta, requiredMeta, reaction, pageview,
    });
  }
  document.addEventListener(&amp;quot;astro:after-swap&amp;quot;, mountWaline);
  document.addEventListener(&amp;quot;DOMContentLoaded&amp;quot;, mountWaline);
&amp;lt;/script&amp;gt;
&amp;lt;style&amp;gt;
  #waline-container { margin-top: 2rem; margin-bottom: 2rem; }
&amp;lt;/style&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2&gt;常见问题&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;评论不显示&lt;/strong&gt;：请检查配置文件参数是否正确，Waline/Giscus 服务端是否可访问。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;切换无效&lt;/strong&gt;：确认已保存配置文件并重启开发服务。&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Tue, 15 Apr 2025 00:00:00 GMT</pubDate></item><item><title>Using mdx in RyuChan</title><link>https://hub.xiaozhangya.xin/blog/ryuchan-mdx/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/ryuchan-mdx/</guid><description>Using MDX in RyuChan to enrich article content with more components</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/ryuchan-mdx/&quot;&gt;https://hub.xiaozhangya.xin/blog/ryuchan-mdx/&lt;/a&gt;&lt;/blockquote&gt; &lt;p&gt;import Collapse from &amp;quot;../../components/mdx/Collapse.astro&amp;quot;;
import Diff from &amp;quot;../../components/mdx/Diff.astro&amp;quot;;
import Error from &amp;quot;../../components/mdx/Error.astro&amp;quot;;
import Info from &amp;quot;../../components/mdx/Info.astro&amp;quot;;
import Kbd from &amp;quot;../../components/mdx/Kbd.astro&amp;quot;;
import Success from &amp;quot;../../components/mdx/Success.astro&amp;quot;;
import Warning from &amp;quot;../../components/mdx/Warning.astro&amp;quot;;
import TimeLine from &amp;quot;../../components/mdx/TimeLine.astro&amp;quot;;
import LinkCard from &amp;quot;../../components/mdx/LinkCard.astro&amp;quot;;&lt;/p&gt;
&lt;h2&gt;Preface&lt;/h2&gt;
&lt;p&gt;This article describes how to use the components provided by RyuChan in &lt;code&gt;mdx&lt;/code&gt; to realize the functions that can&amp;#39;t be realized by normal &lt;code&gt;md&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Main text&lt;/h2&gt;
&lt;h3&gt;Getting started&lt;/h3&gt;
&lt;p&gt;First you need to create an &lt;code&gt;mdx&lt;/code&gt; file, which is as simple as changing the extension to &lt;code&gt;.mdx&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Introducing&lt;/h3&gt;
&lt;p&gt;The components provided by Ryuchan are placed in the &lt;code&gt;/mdx&lt;/code&gt; folders. Write something under the document properties (frontmatter):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;import Collapse from &amp;quot;../../components/mdx/Collapse.astro&amp;quot;;
import Diff from &amp;quot;../../components/mdx/Diff.astro&amp;quot;;
import Error from &amp;quot;../../components/mdx/Error.astro&amp;quot;;
import Info from &amp;quot;../../components/mdx/Info.astro&amp;quot;;
import Kbd from &amp;quot;../../components/mdx/Kbd.astro&amp;quot;;
import Success from &amp;quot;../../components/mdx/Success.astro&amp;quot;;
import Warning from &amp;quot;../../components/mdx/Warning.astro&amp;quot;;
import TimeLine from &amp;quot;../../components/mdx/TimeLine.astro&amp;quot;;
import LinkCard from &amp;quot;../../components/mdx/LinkCard.astro&amp;quot;;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Example&lt;/h3&gt;
&lt;h4&gt;Collapse&lt;/h4&gt;
&lt;Collapse title=&quot;This is an example text.&quot;&gt;
  This is the hidden content!
&lt;/Collapse&gt;

&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Collapse title=&amp;quot;This is an example text.&amp;quot;&amp;gt;
  This is the hidden content!
&amp;lt;/Collapse&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Diff&lt;/h4&gt;
&lt;Diff l=&quot;https://hub.xiaozhangya.xin/image/l.png&quot; r=&quot;https://hub.xiaozhangya.xin/image/r.png&quot; /&gt;

&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Diff l=&amp;quot;/image/l.png&amp;quot; r=&amp;quot;/image/r.png&amp;quot; /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Error&lt;/h4&gt;
&lt;p&gt;&lt;Error&gt;Maybe something went wrong?&lt;/Error&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Error&amp;gt;Maybe something went wrong? &amp;lt;/Error&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Warning&lt;/h4&gt;
&lt;p&gt;&lt;Warning&gt;Hey! Watch out for potholes! &lt;/Warning&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Warning&amp;gt;Hey! Watch out for potholes! &amp;lt;/Warning&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Message&lt;/h4&gt;
&lt;p&gt;&lt;Info&gt;It&amp;#39;s just a message. &lt;/Info&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Info&amp;gt;It&amp;#39;s just a message. &amp;lt;/Info&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Success&lt;/h4&gt;
&lt;p&gt;&lt;Success&gt;Congratulations on your successful deployment! &lt;/Success&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Success&amp;gt;Congratulations on your successful deployment! &amp;lt;/Success&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Kbd&lt;/h4&gt;
&lt;p&gt;&lt;Kbd&gt;Ctrl&lt;/Kbd&gt; + &lt;Kbd&gt;C&lt;/Kbd&gt; to copy the text.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;Kbd&amp;gt;Ctrl&amp;lt;/Kbd&amp;gt; + &amp;lt;Kbd&amp;gt;C&amp;lt;/Kbd&amp;gt; to copy the text.
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;TimeLine&lt;/h4&gt;
&lt;p&gt;&amp;lt;TimeLine
  items={[
    { year: &amp;quot;1984&amp;quot;, event: &amp;quot;First Macintosh computer&amp;quot; },
    { year: &amp;quot;1998&amp;quot;, event: &amp;quot;iMac&amp;quot; },
    { year: &amp;quot;2001&amp;quot;, event: &amp;quot;iPod&amp;quot; },
    { year: &amp;quot;2007&amp;quot;, event: &amp;quot;iPhone&amp;quot; },
    { year: &amp;quot;2015&amp;quot;, event: &amp;quot;Apple Watch&amp;quot; },
  ]}
/&amp;gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;TimeLine
  items={[
    { year: &amp;quot;1984&amp;quot;, event: &amp;quot;First Macintosh computer&amp;quot; },
    { year: &amp;quot;1998&amp;quot;, event: &amp;quot;iMac&amp;quot; },
    { year: &amp;quot;2001&amp;quot;, event: &amp;quot;iPod&amp;quot; },
    { year: &amp;quot;2007&amp;quot;, event: &amp;quot;iPhone&amp;quot; },
    { year: &amp;quot;2015&amp;quot;, event: &amp;quot;Apple Watch&amp;quot; },
  ]}
/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;LinkCard&lt;/h4&gt;
&lt;p&gt;&lt;LinkCard
  title=&quot;RyuChan&quot;
  desc=&quot;My blog project!&quot;
  url=&quot;https://github.com/kobaridev/RyuChan&quot;
  img=&quot;https://img.xiaozhangya.xin/file/Avatar/NOr1G3Zs.jpeg&quot;
/&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-astro&quot;&gt;&amp;lt;LinkCard
  title=&amp;quot;RyuChan&amp;quot;
  desc=&amp;quot;My blog project!&amp;quot;
  url=&amp;quot;https://github.com/kobaridev/RyuChan&amp;quot;
  img=&amp;quot;https://img.xiaozhangya.xin/file/Avatar/NOr1G3Zs.jpeg&amp;quot;
/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Fri, 12 Jul 2024 00:00:00 GMT</pubDate></item><item><title>Markdown Style Guide</title><link>https://hub.xiaozhangya.xin/blog/markdown-style-guide/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/markdown-style-guide/</guid><description>Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/markdown-style-guide/&quot;&gt;https://hub.xiaozhangya.xin/blog/markdown-style-guide/&lt;/a&gt;&lt;/blockquote&gt; &lt;p&gt;Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.&lt;/p&gt;
&lt;h2&gt;Headings&lt;/h2&gt;
&lt;p&gt;The following HTML &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;—&lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; elements represent six levels of section headings. &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; is the highest section level while &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; is the lowest.&lt;/p&gt;
&lt;h1&gt;H1&lt;/h1&gt;
&lt;h2&gt;H2&lt;/h2&gt;
&lt;h3&gt;H3&lt;/h3&gt;
&lt;h4&gt;H4&lt;/h4&gt;
&lt;h5&gt;H5&lt;/h5&gt;
&lt;h6&gt;H6&lt;/h6&gt;
&lt;h2&gt;Paragraph&lt;/h2&gt;
&lt;p&gt;Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.&lt;/p&gt;
&lt;p&gt;Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.&lt;/p&gt;
&lt;h2&gt;Images&lt;/h2&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;![Alt text](./full/or/relative/path/of/image)
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;p&gt;&lt;img src=&quot;https://hub.xiaozhangya.xin/logo.png&quot; alt=&quot;blog placeholder&quot;&gt;&lt;/p&gt;
&lt;h2&gt;Blockquotes&lt;/h2&gt;
&lt;p&gt;The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a &lt;code&gt;footer&lt;/code&gt; or &lt;code&gt;cite&lt;/code&gt; element, and optionally with in-line changes such as annotations and abbreviations.&lt;/p&gt;
&lt;h3&gt;Blockquote without attribution&lt;/h3&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;&amp;gt; Tiam, ad mint andaepu dandae nostion secatur sequo quae.
&amp;gt; **Note** that you can use _Markdown syntax_ within a blockquote.
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;blockquote&gt;
&lt;p&gt;Tiam, ad mint andaepu dandae nostion secatur sequo quae.
&lt;strong&gt;Note&lt;/strong&gt; that you can use &lt;em&gt;Markdown syntax&lt;/em&gt; within a blockquote.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Blockquote with attribution&lt;/h3&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;&amp;gt; Don&amp;#39;t communicate by sharing memory, share memory by communicating.&amp;lt;br&amp;gt;
&amp;gt; — &amp;lt;cite&amp;gt;Rob Pike[^1]&amp;lt;/cite&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;blockquote&gt;
&lt;p&gt;Don&amp;#39;t communicate by sharing memory, share memory by communicating.&lt;br&gt;
— &lt;cite&gt;Rob Pike[^1]&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;[^1]: The above quote is excerpted from Rob Pike&amp;#39;s &lt;a href=&quot;https://www.youtube.com/watch?v=PAAkCSZUG1c&quot;&gt;talk&lt;/a&gt; during Gopherfest, November 18, 2015.&lt;/p&gt;
&lt;h2&gt;Tables&lt;/h2&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;| Italics   | Bold     | Code   |
| --------- | -------- | ------ |
| _italics_ | **bold** | `code` |
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Italics&lt;/th&gt;
&lt;th&gt;Bold&lt;/th&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&lt;em&gt;italics&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;bold&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;code&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2&gt;Code Blocks&lt;/h2&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;p&gt;we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntac, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;```cpp
#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;
const int N = 1e5 + 5;
int n, k, a[N];
long long ans;
vector&amp;lt;int&amp;gt; v[N];
int main()
{
    scanf(&amp;quot;%d%d&amp;quot;, &amp;amp;n, &amp;amp;k);
    for (int i = 1; i &amp;lt;= n; i++)
    {
        scanf(&amp;quot;%d&amp;quot;, &amp;amp;a[i]);
        v[i % k].push_back(a[i]);
    }
    for (int i = 0; i &amp;lt; k; i++)
        sort(v[i].rbegin(), v[i].rend());
    for (int i = 0; i &amp;lt; k; i++)
    {
        for (int j = 0; j + 1 &amp;lt; v[i].size(); j += 2)
        {
            ans += v[i][j] + v[i][j + 1];
        }
    }
    printf(&amp;quot;%lld\n&amp;quot;, ans);
    return 0;
}
```
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Output&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;#include &amp;lt;bits/stdc++.h&amp;gt;
using namespace std;
const int N = 1e5 + 5;
int n, k, a[N];
long long ans;
vector&amp;lt;int&amp;gt; v[N];
int main()
{
    scanf(&amp;quot;%d%d&amp;quot;, &amp;amp;n, &amp;amp;k);
    for (int i = 1; i &amp;lt;= n; i++)
    {
        scanf(&amp;quot;%d&amp;quot;, &amp;amp;a[i]);
        v[i % k].push_back(a[i]);
    }
    for (int i = 0; i &amp;lt; k; i++)
        sort(v[i].rbegin(), v[i].rend());
    for (int i = 0; i &amp;lt; k; i++)
    {
        for (int j = 0; j + 1 &amp;lt; v[i].size(); j += 2)
        {
            ans += v[i][j] + v[i][j + 1];
        }
    }
    printf(&amp;quot;%lld\n&amp;quot;, ans);
    return 0;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;List Types&lt;/h2&gt;
&lt;h3&gt;Ordered List&lt;/h3&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;1. First item
2. Second item
3. Third item
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;First item&lt;/li&gt;
&lt;li&gt;Second item&lt;/li&gt;
&lt;li&gt;Third item&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Unordered List&lt;/h3&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;- List item
- Another item
- And another item
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;List item&lt;/li&gt;
&lt;li&gt;Another item&lt;/li&gt;
&lt;li&gt;And another item&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Nested list&lt;/h3&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;- Fruit
  - Apple
  - Orange
  - Banana
- Dairy
  - Milk
  - Cheese
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Fruit&lt;ul&gt;
&lt;li&gt;Apple&lt;/li&gt;
&lt;li&gt;Orange&lt;/li&gt;
&lt;li&gt;Banana&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Dairy&lt;ul&gt;
&lt;li&gt;Milk&lt;/li&gt;
&lt;li&gt;Cheese&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Other Elements&lt;/h2&gt;
&lt;h4&gt;Syntax&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;&amp;lt;abbr title=&amp;quot;Graphics Interchange Format&amp;quot;&amp;gt;GIF&amp;lt;/abbr&amp;gt; is a bitmap image format.

H&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;O

X&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; + Y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; = Z&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;

Press &amp;lt;kbd&amp;gt;CTRL&amp;lt;/kbd&amp;gt;+&amp;lt;kbd&amp;gt;ALT&amp;lt;/kbd&amp;gt;+&amp;lt;kbd&amp;gt;Delete&amp;lt;/kbd&amp;gt; to end the session.

Most &amp;lt;mark&amp;gt;salamanders&amp;lt;/mark&amp;gt; are nocturnal, and hunt for insects, worms, and other small creatures.
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Output&lt;/h4&gt;
&lt;p&gt;&lt;abbr title=&quot;Graphics Interchange Format&quot;&gt;GIF&lt;/abbr&gt; is a bitmap image format.&lt;/p&gt;
&lt;p&gt;H&lt;sub&gt;2&lt;/sub&gt;O&lt;/p&gt;
&lt;p&gt;X&lt;sup&gt;n&lt;/sup&gt; + Y&lt;sup&gt;n&lt;/sup&gt; = Z&lt;sup&gt;n&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Press &lt;kbd&gt;CTRL&lt;/kbd&gt;+&lt;kbd&gt;ALT&lt;/kbd&gt;+&lt;kbd&gt;Delete&lt;/kbd&gt; to end the session.&lt;/p&gt;
&lt;p&gt;Most &lt;mark&gt;salamanders&lt;/mark&gt; are nocturnal, and hunt for insects, worms, and other small creatures.&lt;/p&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Mon, 01 Jul 2024 00:00:00 GMT</pubDate></item><item><title>Using MDX</title><link>https://hub.xiaozhangya.xin/blog/using-mdx/</link><guid isPermaLink="true">https://hub.xiaozhangya.xin/blog/using-mdx/</guid><description>Lorem ipsum dolor sit amet</description><content:encoded>&lt;blockquote&gt;This rendering was automatically generated by Ryuchan Feed and may have formatting issues. For the best experience, please visit: &lt;a href=&quot;https://hub.xiaozhangya.xin/blog/using-mdx/&quot;&gt;https://hub.xiaozhangya.xin/blog/using-mdx/&lt;/a&gt;&lt;/blockquote&gt; &lt;p&gt;This theme comes with the &lt;a href=&quot;https://docs.astro.build/en/guides/integrations-guide/mdx/&quot;&gt;@astrojs/mdx&lt;/a&gt; integration installed and configured in your &lt;code&gt;astro.config.mjs&lt;/code&gt; config file. If you prefer not to use MDX, you can disable support by removing the integration from your config file.&lt;/p&gt;
&lt;h2&gt;Why MDX?&lt;/h2&gt;
&lt;p&gt;MDX is a special flavor of Markdown that supports embedded JavaScript &amp;amp; JSX syntax. This unlocks the ability to &lt;a href=&quot;https://docs.astro.build/en/guides/markdown-content/#mdx-features&quot;&gt;mix JavaScript and UI Components into your Markdown content&lt;/a&gt; for things like interactive charts or alerts.&lt;/p&gt;
&lt;p&gt;If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.&lt;/p&gt;
&lt;h2&gt;Example&lt;/h2&gt;
&lt;p&gt;Here is how you import and use a UI component inside of MDX.&lt;br&gt;When you open this page in the browser, you should see the clickable button below.&lt;/p&gt;
&lt;h2&gt;More Links&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://mdxjs.com/docs/what-is-mdx&quot;&gt;MDX Syntax Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.astro.build/en/guides/markdown-content/#markdown-and-mdx-pages&quot;&gt;Astro Usage Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;a href=&quot;https://docs.astro.build/en/reference/directives-reference/#client-directives&quot;&gt;Client Directives&lt;/a&gt; are still required to create interactive components. Otherwise, all components in your MDX will render as static HTML (no JavaScript) by default.&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>RyuChan</dc:creator><pubDate>Sat, 02 Jul 2022 00:00:00 GMT</pubDate></item></channel></rss>