<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Showdown on Solarized Sublime Sekai</title>
    <link>https://vincenttam.gitlab.io/tags/showdown/</link>
    <description>Recent content in Showdown on Solarized Sublime Sekai</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 05 Aug 2026 11:08:26 +0200</lastBuildDate>
    <atom:link href="https://vincenttam.gitlab.io/tags/showdown/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Showdown KaTeX With mhchem</title>
      <link>https://vincenttam.gitlab.io/post/2022-10-18-showdown-katex-with-mhchem/</link>
      <pubDate>Tue, 18 Oct 2022 13:46:01 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2022-10-18-showdown-katex-with-mhchem/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve written about &lt;a href=&#34;https://vincenttam.gitlab.io/post/2019-04-29-improved-integration-of-hugo-and-katex/&#34;&gt;bringing user-defined KaTeX macros into Hugo&lt;/a&gt; a few&#xA;years ago.  Looking back, I realized that I only knew how to copy code at that&#xA;time.&lt;/p&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;To replace the current code for &lt;a href=&#34;https://vincenttam.gitlab.io/math-live-preview/&#34;&gt;my math editor&lt;/a&gt; with&#xA;&lt;a href=&#34;https://obedm503.github.io/showdown-katex/&#34;&gt;Showdown-KaTeX&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;To bring &lt;a href=&#34;https://mhchem.github.io/MathJax-mhchem/&#34;&gt;mhchem&lt;/a&gt; into &lt;a href=&#34;https://vincenttam.github.io/showdown-katex/&#34;&gt;my LaTeX + Markdown sandbox&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;To get the benefits of the three free (as in &amp;ldquo;freedom&amp;rdquo;) technologies.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.markdowntutorial.com/&#34;&gt;Markdown syntax&lt;/a&gt; is (much) simple(r than its LaTeX equivalent,&#xA;especially for tables, ordered/unordered lists, etc).&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://en.wikibooks.org/wiki/LaTeX/Mathematics&#34;&gt;LaTeX syntax for math&lt;/a&gt; is, in the long run, worth learning, so&#xA;that your fingers can stay on the keyboard while editing math expressions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://mhchem.github.io/MathJax-mhchem/&#34;&gt;mhchem&lt;/a&gt; allows writing chemical equations conveniently as in the previous&#xA;point.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;However, Rattle has pointed out the&#xA;&lt;a href=&#34;https://blag.nullteilerfrei.de/2017/06/23/wordpress-katex-and-the-showdown/&#34;&gt;difficulties of mixing LaTeX and Markdown syntax&lt;/a&gt;.  In his proposed&#xA;solution for WordPress, he first renders KaTeX before moving to Markdown.  He&#xA;has provided an example use case with a dollar sign &lt;code&gt;$&lt;/code&gt; in a normal Markdown&#xA;content  (e.g. An apple costs $1.5.)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
