mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Picture Element #267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TerribleDev on GitHub (Feb 4, 2019).
I plan on writing an extension that emits
<picture>elements instead of<img>with some customizable suffixes for different image formatswebp,jpeg xr, and src setsAs a bit of background I use this markdown compiler for my blog, it gets all 100's in lighthouse, and my last performance bottleneck left to tackle is to ship next gen image formats, but to do that I have to start telling the browsers to use a different image formats based on what the browser supports. The picture element describes an image to load based on rules including format, src set, media query, etc.
For now I'm just going to keep this extension in a separate repo
I've been doing a lot of private extension development for my blog, and I have a decent grasp with how it all fits together. For my new extension, do you think I should just make a renderer that inherits from
LinkInlineRendererbut one that just emits picture elements instead if theLinkInlineis has the Image property?Any other tips I should consider when making this thing?