Get the latest tech news

The Joy of Mixing Custom Elements, Web Components, and Markdown


I love Markdown. I write faster and more natively in it than any other format or tool. If we zoom way out, here’s the most basic philosophy of Markdown: replace complicated stuff with simpler stuff. That’s all it does, really. It replaces some tedious nested taggy stuff with way simpler stuff that…

The only restrictions are that block-level HTML elements […] must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces. They tend to get lost behind all the attention paid to the big client-side frameworks like React, but the first public spec was published in 2013, finalized in 2016, and we’ve had broad browser support since 2018 or so. This opens some lovely possibilities for page, layout, and element complexity and functionality while retaining the “I wrote it in a simple text editor!” joy that made Markdown so awesome to start with.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of joy

joy

Photo of web components

web components

Photo of custom elements

custom elements

Related news:

News photo

Writing toy software is a joy

News photo

Writing Toy Software Is a Joy

News photo

Self-Host and Tech Independence: The Joy of Building Your Own