diff --git a/web/src/middlewares/previewFunctions.tsx b/web/src/middlewares/previewFunctions.tsx index 613f9c9..e3afed2 100644 --- a/web/src/middlewares/previewFunctions.tsx +++ b/web/src/middlewares/previewFunctions.tsx @@ -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) => {