Home > Designing, Others > On Yak Shaving and md-block, a new HTML element for Markdown

On Yak Shaving and md-block, a new HTML element for Markdown

December 29th, 2021 Leave a comment Go to comments

Lea Verou made a Web Component for processing Markdown. Looks like there were a couple of others out there already, but I agree with Lea in that this is a good use case for the light DOM (as opposed to the shadow DOM that is normally quite useful for web components), and that’s what Lea’s does. The output is HTML so I can imagine it’s ideal you can style it on the page like any other type rather than have to deal with that shadow DOM. I still feel like the styling stories for shadow DOM all kinda suck.

The story of how it came to be is funny and highly relatable. You just want to build one simple thing and it turns out you have to do 15 other things and it takes the better part of a week.

The demos on the landing page for shoot over to CodePen using the prefill API. Figured I’d embed one here too:

CodePen Embed Fallback

To Shared LinkPermalink on CSS-Tricks

Categories: Designing, Others Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.