You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to open .MD documents stored inside .ZIP archives... these .MD documents have images, also included inside the ZIP
Unfortunately AssetPathRoot only works for file system and network Urls, but not for markdown files opened as stream.
So, Is there a way to tell the library how to resolve the external references?
Ideally, I would like something like this:
markdown.AssetStreamRequest=(s,e)=>{// this is an example code, in this case, e.MarkDownAbsoluteUri would be null because the source is a streamstringassetPath=UserCombinePath(e.MarkDownAbsoluteUri,e.AssetRelativeUri);e.AssetStream=zip.GetEntry(imagePath).OpenStream();}
Notice that this is a general solution for references stored anywhere, it could be used for file system, network, or any other location.
I am not sure if this is already possible using some other way...
The text was updated successfully, but these errors were encountered:
vpenades
changed the title
openinga markdown document from inside a zip archive.
opening a markdown document from inside a zip archive.
Oct 16, 2024
Hi
I would like to be able to open .MD documents stored inside .ZIP archives... these .MD documents have images, also included inside the ZIP
Unfortunately AssetPathRoot only works for file system and network Urls, but not for markdown files opened as stream.
So, Is there a way to tell the library how to resolve the external references?
Ideally, I would like something like this:
Notice that this is a general solution for references stored anywhere, it could be used for file system, network, or any other location.
I am not sure if this is already possible using some other way...
The text was updated successfully, but these errors were encountered: