News for hackers. Stuff that matters.
Re:Web Components Will Outlive Your JavaScript Framework by ElevenLathe on Wednesday October 25, 2023 @11:11AM (#38013652)
>> But Markdown has a secret weapon: you can write HTML inside of it! That means any fancy interactive diagrams I wanted to add would be just as portable as my the rest of my Markdown as long as I could express them as plain HTML tags.

> You can also use MDX and achieve exactly the same thing.

I would like to point out that plain HTML also has this property.

Re:Web Components Will Outlive Your JavaScript Framework by bastawhiz on Wednesday October 25, 2023 @11:19AM (#38013740)
Sure, and you could hand-write your blog posts in a hex editor so that the binary data can just be pumped out over the wire. Markdown generates HTML. MDX generates HTML. Use the tool that brings you joy and makes your life easy.

In any case, the point is that referencing another piece of code from your markup can be done in a number of ways, and the way the author chose has an upside but also a significant downside.