~sircmpwn/cgi-scripts

2523a9c853ba1d36c47ce59300d4a1fb2d3bf7ed — Drew DeVault 3 years ago 9a504e7
web2gmi: fix error with image links
1 files changed, 1 insertions(+), 1 deletions(-)

M web2gmi.js
M web2gmi.js => web2gmi.js +1 -1
@@ 35,7 35,7 @@ const convert = (dom, title) => {
  const emitLink = link => {
      let desc = sanitize(link.innerHTML);
      if (desc === "") {
        const img = el.querySelector("img");
        const img = link.querySelector("img");
        if (img) {
          desc = `${img.alt ? " " + img.alt : ""}\n\n`;
        }