nekoshita/obsidian-auto-card-link

Innocuous image and favicon links are not rendered

Opened this issue · 2 comments

Both the innocuous image and favicon links are not rendered:

url: https://www2.cs.uky.edu/dri/
title: "EduceLab: A Digital Restoratoin Initiative"
description: "Dr. Seales and the Digital Restoration Initiative are working to create and use hi-tech, non-invasive tools to virtually unwrap, read & preserve ancient carbonized scroll and other documents."
host: www2.cs.uky.edu
favicon: https://www2.cs.uky.edu/dri/wp-content/uploads/2019/05/cropped-DRI-favicon-32x32.png
image: https://www2.cs.uky.edu/dri/wp-content/uploads/2020/11/EduceLab.png

Status?

ormai commented

The request for the image is not done on https://www2.cs.uky.edu/dri/wp-content/uploads/2020/11/EduceLab.png but on tps://www2.cs.uky.edu/dri/wp-content/uploads/2020/11/EduceLab.p. Similarly for the favicon: instead of downloading https://www2.cs.uky.edu/dri/wp-content/uploads/2019/05/cropped-DRI-favicon-32x32.png, it tries to download tps://www2.cs.uky.edu/dri/wp-content/uploads/2019/05/cropped-DRI-favicon-32x32.p.

The status for both is (failed) net::ERR_UNKNOWN_URL_SCHEME.

So here and here there is a failure to detect that these are well-formed links, which causes this slice to mangle each link, which then gets inserted in the rendered cardlink.

I'll try to work on a fix, then I'll push it to #65.