News for hackers. Stuff that matters.
Re:On yak shaving and <md-block>, a new HTML element f... by dmix on Friday November 26, 2021 @04:30PM (#29354319)
The source of the documentation site is a good example of it being used:

view-source:https://md-block.verou.me/

Nice and clean.

That being said I've never used web components and haven't really planned on. Not sure what their status has been in terms of adoption.

Re:On yak shaving and <md-block>, a new HTML element f... by dmitriid on Friday November 26, 2021 @06:37PM (#29355446)
> Not sure what their status has been in terms of adoption.

Chrome teams and WC proponents will have you believe the adoption is huge, in the tens of percents of webviews. Of which most are Google's Youtube...

There have also been high profile adoptions at GitHub and Salesforce.

Beyond that, they have an issue list as long as my hand (and busy adding new issues), and can't really be used without a library/framework. So...

Re:On yak shaving and <md-block>, a new HTML element f... by oefrha on Friday November 26, 2021 @10:23PM (#29357066)
I wouldn't call flash-of-uncompiled-markup nice and clean. Please pre-render your markup.
Re:On yak shaving and <md-block>, a new HTML element f... by tkzed49 on Saturday November 27, 2021 @06:07AM (#29359272)
While I think you can compile your markdown in most cases, this is a two line fix: set the style to display: none and remove it after compiling.