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:
@@ -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 |
Reference in New Issue
Block a user