React Markdown dynamically required MD file, image relative path not working
问题 i cannot get my image in the markdown file to render. I am requiring the markdown file in a react component, but the image in the md file is not rendering. absolute paths to online images are working, but relative paths are not. useEffect(() => { fetch(require(`../../../static/markdowns/${category.file}`)).then(r => r.text()).then(text => { setMarkDown(text) }) }, []) <ReactMarkdown escapeHtml={false} source={markDown}/> <img src='https://picsum.photos/200/300'></img> <img src=".