{"title":"matdoes.dev markdown","published":"2021-03-24T05:53:14.373Z","html":"<div class=\"warning box\">This post is outdated, I rewrote my website to use <a href=\"https://github.com/pngwn/MDsveX\">mdsvex</a>.</div> <p>A couple years ago when I was creating the matdoes.<wbr/>dev blog I wrote a somewhat powerful markdown system with Regex to allow me to more easily write blog posts. Although I’ve barely written any posts, I’m still proud of it. Also this post is mostly just reference for myself, lol.\nI present: matdown™</p> <hr/> <p>Relative anchor: <code>[matdoesdev](/blog)</code> <a href=\"/blog\">matdoesdev</a></p> <p>External anchor: <code>[matdoesdev](https://matdoes.<wbr/>dev)</code> <a href=\"https://matdoes.dev\" rel=\"noopener\">matdoesdev</a> (External anchors have target=_blank so they open in new pages)</p> <p>Normal links: <code>https://matdoes.<wbr/>dev</code> <a href=\"https://matdoes.dev\" rel=\"noopener\">https://matdoes.<wbr/>dev</a></p> <p>Code block: ```py\nprint(‘code’)\n```</p> <pre class=\"language-py\"><code class=\"language-py\"><span class=\"token keyword\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\">'code'</span><span class=\"token punctuation\">)</span></code></pre> <p>Inline code: <code>`code`</code> <code>code</code></p> <p>Block quote: <code>> text</code></p> <blockquote><p>text</p></blockquote> <p>Italic: *text* <em>text</em> Bold: **text** <strong>text</strong> Italic &amp; bold: ***text*** <strong><em>text</em></strong></p> <p>Horizontal center: <code>||text||</code> ||text||</p> <p>Titles:\n# h2\n## h3\n### h4\n#### h5\n##### h6\n###### h6</p> <h1>h2</h1> <h2>h3</h2> <h3>h4</h3> <h4>h5</h4> <h5>h6</h5> <h6>h6</h6> <h2>Horizontal rule: ---</h2> <p>Image:\n![description](https://image)</p>"}