Une fonctionnalité pratique des URLs et/ou du HTML (je ne sais pas d’où ça sort), c’est qu’avec le schéma « data » on peut embarquer des données directement dans l’URL au lieu de pointer avec une ressource externe. C’est très pratique typiquement pour les petites images.
Or, ce schéma n’est pas compris par notre markdown, qui ne génère pas le code attendu. Par exemple :
1 | ![La Joconde](data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAEgASAMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAFAAMEBgcBAv/EAC8QAAIBAwMCBAUEAwEAAAAAAAECAwAEEQUSIRMxBkFRYRQicZHwI4Gx8TJCUjP/xAAZAQACAwEAAAAAAAAAAAAAAAACBAABAwX/xAAhEQACAQUAAgMBAAAAAAAAAAAAAQIDERIhMQQyIkFxE//aAAwDAQACEQMRAD8AGvax9wi889qb+GXkmNftRTphwGC+Q5rw0JzQ5MUxuCGt0Bz01H7Uvh1AOEAJHpRZoQSBUDUrl7ZxaWds1zduM7QpIQepx/FTOxcaeTshgWny/wDmCK9Lbof9B9qFXuoaxYzHrJsXOAGg2g1N0PXotQuRaXCCK4bOwj/F/b2NWp3DlQcekpbRM8ote0tI+couPpUzpENg9qfSDzPapkBimQBZw4yI1JApUSWMc/SlUzJiMRahbNFHt5YgEhTxipgns8j9VQSO/lVMtZo4FWMZJUDJpS3DhlkABI59efegaCuXdkEUbzvjYiljzUDwNcJNbT38rJ1budyu7GcA4AH0AFVm516c2ZtpPljMXTwo+x+tFvBNvYzaJBcSsBPBO5ds4HDnGfbBrGt6jnirdw54ga0vleHrW+5chhuGQayfUwbW9dLd/wBSJ90bDyI5B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pgUqVKhkrMOO0f/9k=) |
Devrait afficher une miniature avec la Joconde parce que le parseur devrait générer ce code HTML :
1 2 | <figure><img alt="" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAEgASAMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAFAAMEBgcBAv/EAC8QAAIBAwMCBAUEAwEAAAAAAAECAwAEEQUSIRMxBkFRYRQicZHwI4Gx8TJCUjP/xAAZAQACAwEAAAAAAAAAAAAAAAACBAABAwX/xAAhEQACAQUAAgMBAAAAAAAAAAAAAQIDERIhMQQyIkFxE//aAAwDAQACEQMRAD8AGvax9wi889qb+GXkmNftRTphwGC+Q5rw0JzQ5MUxuCGt0Bz01H7Uvh1AOEAJHpRZoQSBUDUrl7ZxaWds1zduM7QpIQepx/FTOxcaeTshgWny/wDmCK9Lbof9B9qFXuoaxYzHrJsXOAGg2g1N0PXotQuRaXCCK4bOwj/F/b2NWp3DlQcekpbRM8ote0tI+couPpUzpENg9qfSDzPapkBimQBZw4yI1JApUSWMc/SlUzJiMRahbNFHt5YgEhTxipgns8j9VQSO/lVMtZo4FWMZJUDJpS3DhlkABI59efegaCuXdkEUbzvjYiljzUDwNcJNbT38rJ1budyu7GcA4AH0AFVm516c2ZtpPljMXTwo+x+tFvBNvYzaJBcSsBPBO5ds4HDnGfbBrGt6jnirdw54ga0vleHrW+5chhuGQayfUwbW9dLd/wBSJ90bDyI5BrSoLHSJdKS5cLMqu7Lggq7Z5z681mmvy9TU5pAAE38AUPj+zRt5HEzQrLWI7lEkK43KCfbIzRi0ZbhNy4IJxWd6ZLD8NGfiAGCAc54qz6BqMdrbukk0bKTlSCePuKalHV0c1P5bDztFBIyyHbgZpUGutVt5GZupyARtPc0qpR0W3vRTrOZQMkHnAz6U+8hDlQMftmm7e2iRV6jENnHB71KklEIJRQwQZJYGo2l1l4t8RHmtjJBJI24hR6V3wtrlvpl5JZ37BLW4JPVGcRkjHI81NMXWug20g6Bxjbye2RQ/T9GvtcuOlaxDAA3uey5qpqLW+G9Fyj+lvu9TsraBra1nWZSflYfwBmqTqe5pmZhgHnmtMbw0j9LqIvUVAGZR/l71VfFukCG9jVSMsnb0xS9OcYsZqRlJA/SRE9qoLYwSDU1SkeT8hx2zQXT7mSC6khVUZWYld391Z7WyZwJbu0RIim5XEgO4/Sm80kc9025EfLZEhOc85HalTkojST9ONQGBDDn5a5UzRP5saG4hJAFPIIB71KZYr2DpxxNFITypOQT+etQdGvlKvHIhyhwHAzx5fntS8Q3pTTxHDPMN7Ycdsik2nnidDWGQDvHFxciCDAjLhS3m2PP6VsXhjRU0fT1VcHqHdkefFY3pskcZaVxwnI/P2qzaP4gv7cDpXbosZ4QkFc/Q1pWg+IClNLbNWaFsE47is+8XW0txqG1SFVVwWYgAd+a5P491BbZ97xYxwwTB/b+qpVzqVzqlyXlc7B3LHOTWcKMm7mkq0UrE27s9Ls7Uot8J5u4Kgnn69qe0PxC0afDToXUZAKtt/DQ6TTWmi3wbQv8A07cmoBR4JvlwWU5z6UyoJq1xZyd+Gh27W2q2rGENGU75cHHvjvSqtiZljSZQo3gFCh86VBFM0lFBDT76KxR1W3JGSWdmGTQbWr06tdr0Y+nGq4Ax3965SolFJ5AXbVgPtMMhVuOaciYs23cR83f2zSpVqtozfbHrUJd5CDtjgCm7XDypFj5Sea5Sq7aK+wjc6o7R9C1yq85YentQ+Bgkp388HNcpVUVbQUthK0mt3thE8Dlw3DpgUqVKhkrMOO0f/9k="><figcaption>La Joconde</figcaption> </figure> |
Mais à la place on obtient :
1 2 | <figure><img alt="" src=""><figcaption>La Joconde</figcaption> </figure> |
Ce qui donne évidemment :
+1
-0