matdoes.dev markdown

1 minute read

A couple years ago when I was creating the matdoes.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.
I present: matdown™



Relative anchor: [matdoesdev](/blog) matdoesdev

External anchor: [matdoesdev](https://matdoes.dev) matdoesdev
(External anchors have target=_blank so they open in new pages)

Normal links: https://matdoes.dev https://matdoes.dev

Code block: ```py
print('code')
```
print('code')


Inline code: `code` code

Block quote: > text
text

Italic: *text* text
Bold: **text** text
Italic & bold: ***text*** text

Horizontal center: ||text||
text

Titles:
# h2
## h3
### h4
#### h5
##### h6
###### h6

h2


h3


h4


h5

h6

h6

Horizontal rule: ---


Image:
![description](https://image)
Left image:
,![description](https://image)
Right image:
.![description](https://image)