Skip to content

Commit

Permalink
fix: could not load images if source is XHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakamiShinyu committed Oct 18, 2023
1 parent e16b21e commit 2c5b61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/middlewares/previewFunctions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function transpileMarkdown(
}
console.log('transpiled', srcPath, '\n' /*, text*/);
let errors:Error[] = [];
if (srcPath.endsWith('.html')) {
if (srcPath.endsWith('.html') || srcPath.endsWith('.xhtml')) {
const imagePaths = pickupHtmlResources(text);
console.log('transpile imagePaths',imagePaths);
const promises = imagePaths.map(async (imagePath) => {
Expand Down

1 comment on commit 2c5b61c

@vercel
Copy link

@vercel vercel bot commented on 2c5b61c Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.