|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
<html>
|
|
<html>
|
|
|
<markdown-html
|
|
<markdown-html
|
|
|
- version="1.20.6"
|
|
|
|
|
|
|
+ version="1.20.7"
|
|
|
author="PJ568"
|
|
author="PJ568"
|
|
|
repo="https://github.com/PJ-568/markdown.html"
|
|
repo="https://github.com/PJ-568/markdown.html"
|
|
|
license="CC BY-SA 4.0 International"
|
|
license="CC BY-SA 4.0 International"
|
|
@@ -634,7 +634,12 @@
|
|
|
images.forEach((img) => {
|
|
images.forEach((img) => {
|
|
|
const src = img.getAttribute("src");
|
|
const src = img.getAttribute("src");
|
|
|
img.setAttribute("loading", "lazy");
|
|
img.setAttribute("loading", "lazy");
|
|
|
- if (src && !isExternalLink(src) && isRelativePath(src)) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ src &&
|
|
|
|
|
+ !src.startsWith("data:") &&
|
|
|
|
|
+ !isExternalLink(src) &&
|
|
|
|
|
+ isRelativePath(src)
|
|
|
|
|
+ ) {
|
|
|
var absolutePath = pValue
|
|
var absolutePath = pValue
|
|
|
? getDirectory(mdPath) + src
|
|
? getDirectory(mdPath) + src
|
|
|
: getPath() + src;
|
|
: getPath() + src;
|