0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-22 04:58:40 +00:00

fix image request going crazy

This commit is contained in:
Víctor Losada Hernández
2026-05-23 09:18:04 +02:00
parent 15df8f2a22
commit 7a0348536c
2 changed files with 1 additions and 3 deletions
@@ -253,8 +253,6 @@ function tokenizeCustomMarkdown(text) {
const closingMatch = lineText.match(/ *(}})/d); const closingMatch = lineText.match(/ *(}})/d);
if(closingMatch) { if(closingMatch) {
console.log('closing', closingMatch);
console.log(closingMatch.indices[1][0], closingMatch.indices[1][1])
tokens.push({ line: lineNumber, from: closingMatch.indices[1][0], to: closingMatch.indices[1][1], type: customTags.block }); tokens.push({ line: lineNumber, from: closingMatch.indices[1][0], to: closingMatch.indices[1][1], type: customTags.block });
} else { } else {
tokens.push({ line: lineNumber, type: customTags.block }); tokens.push({ line: lineNumber, type: customTags.block });
@@ -358,7 +356,7 @@ class ImageWidget extends WidgetType {
img.onerror = ()=>{ img.onerror = ()=>{
img.src = 'client/icons/Broken-image-icon-in-Chrome.png'; img.src = 'client/icons/broken-image.jpg';
}; };
return img; return img;
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB