Skip to content

Commit

Permalink
Fix serve media from domain (#3)
Browse files Browse the repository at this point in the history
* fix: πŸ› Serve media files from configurable domain
  • Loading branch information
dkolba authored May 31, 2023
1 parent 548aff6 commit 7fcd1d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ export async function pathHandler({
mdContent,
};
const document = generateDocument(mdDoc);
const markup = markupify(document, snippet) + render(document.markdown);
const markup = markupify(document, snippet) +
render(document.markdown, {
mediaBaseUrl: resource,
});
const headers = new Headers({
"content-type": "text/html",
});
Expand Down

0 comments on commit 7fcd1d8

Please sign in to comment.