Technology News

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

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 <md-block> shoot over to CodePen using the prefill API. Figured I’d embed one here too:

Direct Link →

Mobile App Development Process
Empathetic Animation

Related Articles

Best Tax Saving Practice For Travel Agencies

best-tax-saving-practice-for-travel-agencies
Best Tax Saving Practice For Travel Agencies Implementing the best tax saving practice no matter whether it is business related to the travel agencies or any other business, not merely…

Be Theme Covers Top Web Design Trends

be-theme-covers-top-web-design-trends
The latest web design trends are keeping web designers busy. These trends have raised the competitive bars. They are demanding attention with their bold shapes and bright colors. So, how…

The Humble `img` Element And Core Web Vitals

the-humble-img-element-and-core-web-vitals
About The Author Addy Osmani is an engineering manager working on Google Chrome. His team focuses on speed tools and frameworks, helping keep the web fast. Devoted to the ……

How to Get URL Parameters with Golang

How to Get URL Parameters with Golang
URL parameters (aka query string parameters or URL variables) are used to send data between web pages or between a client and a server through a URL. They are composed…