<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Markdown on Beacon Demo</title><link>http://beacon-demo.starry-s.moe/tags/markdown/</link><description>Recent content in Markdown on Beacon Demo</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 15 Jul 2026 10:00:00 +0800</lastBuildDate><atom:link href="http://beacon-demo.starry-s.moe/tags/markdown/index.xml" rel="self" type="application/rss+xml"/><item><title>Writing Math with LaTeX</title><link>http://beacon-demo.starry-s.moe/posts/writing-math/</link><pubDate>Wed, 15 Jul 2026 10:00:00 +0800</pubDate><guid>http://beacon-demo.starry-s.moe/posts/writing-math/</guid><description>&lt;p&gt;Beacon supports LaTeX math. Equations are typeset &lt;strong&gt;at build time&lt;/strong&gt; with KaTeX
(via Hugo&amp;rsquo;s &lt;code&gt;transform.ToMath&lt;/code&gt;), so no JavaScript is shipped to readers — the
KaTeX stylesheet is only included on pages that actually contain math.&lt;/p&gt;
&lt;h2 id="inline-math"&gt;Inline math&lt;/h2&gt;
&lt;p&gt;Wrap inline expressions in &lt;code&gt;\(&lt;/code&gt; and &lt;code&gt;\)&lt;/code&gt;. For example, the identity
&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msup&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;i&lt;/mi&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;/mrow&gt;&lt;/msup&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;e^{i\pi} + 1 = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt; holds, and the golden ratio is
&lt;span class="katex"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;φ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msqrt&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/msqrt&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mo&gt;≈&lt;/mo&gt;&lt;mn&gt;1.618&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;\varphi = \frac{1 + \sqrt{5}}{2} \approx 1.618&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Plain dollar signs are left alone, so writing about a $5 coffee or a $10
lunch is safe.&lt;/p&gt;</description></item><item><title>A Markdown Showcase</title><link>http://beacon-demo.starry-s.moe/posts/markdown-showcase/</link><pubDate>Sat, 20 Jun 2026 14:30:00 +0800</pubDate><guid>http://beacon-demo.starry-s.moe/posts/markdown-showcase/</guid><description>&lt;p&gt;This post is intentionally a bit longer so you can see the &lt;strong&gt;table of contents&lt;/strong&gt;
in action, along with headings, images, and more.&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Beacon renders standard Markdown with sensible defaults. Everything below is
just plain Markdown.&lt;/p&gt;
&lt;h2 id="working-with-headings"&gt;Working with headings&lt;/h2&gt;
&lt;p&gt;Headings from &lt;code&gt;h2&lt;/code&gt; through &lt;code&gt;h4&lt;/code&gt; appear in the table of contents automatically.&lt;/p&gt;
&lt;h3 id="a-third-level-heading"&gt;A third-level heading&lt;/h3&gt;
&lt;p&gt;Nested content stays readable thanks to comfortable line-height and spacing.&lt;/p&gt;
&lt;h4 id="a-fourth-level-heading"&gt;A fourth-level heading&lt;/h4&gt;
&lt;p&gt;Even deeply nested sections look tidy.&lt;/p&gt;</description></item></channel></rss>