Skip to content
Source
Sign inSign up

hostImageUrl.ts

7 lines296 Bytes

1import { createContext } from "react";
2​
3/**
4 * Where markdown loads an image file on the host by its absolute path, when the page has no
5 * environment to ask. The guest page sets it to its own route.
6 */
7export const HostImageUrlContext = createContext<((path: string) => string) | null>(null);