Open garylavayou opened 12 months ago
Relative path in embedded HTML elements, e.g., images are not converted to unified absolute URLs that can be accessed from the document page.
An image in markdown file inserted as HTML img element:
img
<img src=".assets/cake.png" alt="img" style="zoom: 60%;">
The container markdown files path is JavaScript/JavaScript.md in the docs folder (The corresponding access URL is http://localhost:3000/#/JavaScript/JavaScript).
JavaScript/JavaScript.md
http://localhost:3000/#/JavaScript/JavaScript
The serving HTML file contains the raw img element:
The serving HTML file should contain a processed img element, where the URL is relative to the contained document file:
<img src="/JavaScript/.assets/cake.png" alt="img" style="zoom: 60%;">
"4.13.1"
Bug Report
Relative path in embedded HTML elements, e.g., images are not converted to unified absolute URLs that can be accessed from the document page.
Steps to reproduce
An image in markdown file inserted as HTML
img
element:The container markdown files path is
JavaScript/JavaScript.md
in the docs folder (The corresponding access URL ishttp://localhost:3000/#/JavaScript/JavaScript
).Current behaviour
The serving HTML file contains the raw
img
element:Expected behaviour
The serving HTML file should contain a processed
img
element, where the URL is relative to the contained document file:Other relevant information
"4.13.1"
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)