<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Parsing on Ikwuka Okoye</title><link>https://ikwukao.dev/tags/parsing/</link><description>Recent content in Parsing on Ikwuka Okoye</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 10 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ikwukao.dev/tags/parsing/index.xml" rel="self" type="application/rss+xml"/><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>Static Site Generator</title><link>https://ikwukao.dev/projects/static-site-generator/</link><pubDate>Thu, 16 Jul 2026 00:00:00 +0000</pubDate><guid>https://ikwukao.dev/projects/static-site-generator/</guid><description>A Python static-site generator exploring parsing, AST-like structures, Markdown transformation, HTML generation, and clean software architecture.</description></item></channel></rss>