You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-10-06 22:17:10 +02:00
Desktop, Mobile: Resolves #1832: Only support checkboxes that start with a dash
This commit is contained in:
@@ -658,7 +658,7 @@ class Api {
|
||||
|
||||
if (!imageSizesCollection) {
|
||||
// In some cases, we won't find the image size information for that particular URL. Normally
|
||||
// it will only happen when using the "Clip simplified page" feature, which can modify the
|
||||
// it will only happen when using the "Clip simplified page" feature, which can modify the
|
||||
// image URLs (for example it will select a smaller size resolution). In that case, it's
|
||||
// fine to return the image as-is because it has already good dimensions.
|
||||
return before + resourceUrl + after;
|
||||
@@ -666,7 +666,7 @@ class Api {
|
||||
|
||||
const imageSize = imageSizesCollection[imageSizesIndexes[urlInfo.originalUrl]];
|
||||
imageSizesIndexes[urlInfo.originalUrl]++;
|
||||
|
||||
|
||||
if (imageSize && (imageSize.naturalWidth !== imageSize.width || imageSize.naturalHeight !== imageSize.height)) {
|
||||
return '<img width="' + imageSize.width + '" height="' + imageSize.height + '" src="' + resourceUrl + '"/>';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user