<?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 Ikwuka Okoye</title><link>https://ikwukao.dev/tags/markdown/</link><description>Recent content in Markdown on Ikwuka Okoye</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 11 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ikwukao.dev/tags/markdown/index.xml" rel="self" type="application/rss+xml"/><item><title>From Markdown to HTML: Designing the Static Site Generator Pipeline</title><link>https://ikwukao.dev/journal/static-site-generator-markdown-to-html/</link><pubDate>Tue, 11 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/static-site-generator-markdown-to-html/</guid><description>&lt;h2 id="from-markdown-to-html-designing-the-static-site-generator-pipeline"&gt;From Markdown to HTML: Designing the Static Site Generator Pipeline&lt;/h2&gt;
&lt;p&gt;A static site generator is fundamentally a transformation system.&lt;/p&gt;
&lt;p&gt;It takes source content, processes that content through a series of stages, and produces files that can be served directly to users.&lt;/p&gt;
&lt;p&gt;For my static site generator, the core transformation looks like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Markdown
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Blocks
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Block Types
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Inline Text Nodes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HTML Nodes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ↓
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HTML
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The value of this architecture is not simply that it works.&lt;/p&gt;</description></item><item><title>Building a Static Site Generator in Python: From Markdown to HTML</title><link>https://ikwukao.dev/journal/building-a-static-site-generator-in-python/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/building-a-static-site-generator-in-python/</guid><description>&lt;h2 id="building-a-static-site-generator-in-python-from-markdown-to-html"&gt;Building a Static Site Generator in Python: From Markdown to HTML&lt;/h2&gt;
&lt;p&gt;A static site generator looks simple from the outside.&lt;/p&gt;
&lt;p&gt;You write some Markdown, run a command, and HTML files appear in an output directory.&lt;/p&gt;
&lt;p&gt;The interesting engineering work happens between those two points.&lt;/p&gt;
&lt;p&gt;Building a static site generator from scratch is a useful exercise because it exposes several concepts that are normally hidden behind frameworks and libraries: parsing, intermediate representations, tree structures, rendering, filesystem operations, and deterministic builds.&lt;/p&gt;</description></item><item><title>Converting Markdown Blocks into Semantic HTML</title><link>https://ikwukao.dev/journal/converting-markdown-blocks-into-semantic-html/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/converting-markdown-blocks-into-semantic-html/</guid><description>&lt;h2 id="converting-markdown-blocks-into-semantic-html"&gt;Converting Markdown Blocks into Semantic HTML&lt;/h2&gt;
&lt;p&gt;Markdown documents are written as a continuous stream of text, but browsers consume structured HTML.&lt;/p&gt;
&lt;p&gt;Bridging those two representations requires more than replacing a few characters.&lt;/p&gt;
&lt;p&gt;A static site generator needs to understand the boundaries between blocks and determine what each block represents.&lt;/p&gt;
&lt;p&gt;That was one of the central problems in my Static Site Generator project.&lt;/p&gt;
&lt;h2 id="what-is-a-markdown-block"&gt;What Is a Markdown Block?&lt;/h2&gt;
&lt;p&gt;A block is a logical unit of Markdown content.&lt;/p&gt;</description></item><item><title>Parsing Markdown into an HTML Tree: Designing the Intermediate Representation</title><link>https://ikwukao.dev/journal/parsing-markdown-into-an-html-tree/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/parsing-markdown-into-an-html-tree/</guid><description>&lt;h2 id="parsing-markdown-into-an-html-tree-designing-the-intermediate-representation"&gt;Parsing Markdown into an HTML Tree: Designing the Intermediate Representation&lt;/h2&gt;
&lt;p&gt;One of the easiest mistakes to make when building a Markdown-to-HTML converter is to think of the problem as string replacement.&lt;/p&gt;
&lt;p&gt;Replace &lt;code&gt;**text**&lt;/code&gt; with &lt;code&gt;&amp;lt;strong&amp;gt;text&amp;lt;/strong&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Replace &lt;code&gt;*text*&lt;/code&gt; with &lt;code&gt;&amp;lt;em&amp;gt;text&amp;lt;/em&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Replace headings with &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;At first, this seems sufficient.&lt;/p&gt;
&lt;p&gt;It quickly becomes difficult once documents contain nested structures.&lt;/p&gt;
&lt;p&gt;A more robust approach is to introduce an intermediate representation between Markdown and HTML.&lt;/p&gt;</description></item><item><title>Testing a Static Site Generator: Small Contracts, Reliable Output</title><link>https://ikwukao.dev/journal/static-site-generator-testing/</link><pubDate>Mon, 10 Aug 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/journal/static-site-generator-testing/</guid><description>&lt;h2 id="testing-a-static-site-generator-small-contracts-reliable-output"&gt;Testing a Static Site Generator: Small Contracts, Reliable Output&lt;/h2&gt;
&lt;p&gt;A static site generator is a good example of a system where small bugs can propagate through multiple layers.&lt;/p&gt;
&lt;p&gt;A mistake in Markdown parsing can eventually appear as malformed HTML.&lt;/p&gt;
&lt;p&gt;A malformed text node can produce incorrect links.&lt;/p&gt;
&lt;p&gt;A block-classification error can cause an entire section of a page to render incorrectly.&lt;/p&gt;
&lt;p&gt;That makes testing especially important.&lt;/p&gt;
&lt;p&gt;The solution is not necessarily hundreds of large end-to-end tests.&lt;/p&gt;</description></item></channel></rss>