mdview
mdview copied to clipboard
in-line html and relative links are not ideal
Whilst acknowledging the "problems" are mostly due the source markdown I think some enhancements might be possible. For example if you throw some github markdown from repositories you might find relative links to in-line images etc. Perhaps a recursive option (with limits maybe) to partially rebuild the tree in the output would be useful. I also noticed that in-line html comments (when e.g. cog
is being used) are rendered as text (e.g.
<p><!– [[[cog
--
| import subprocess
| import cog</p>
whereas I think mdview
would be better to catch and leave these as in-line html to be rendered as comments.
I'm using a third-party library to handle the conversion. Maybe there's a better option out there?
Do you have a link to a markdown file that exhibits this behavior? That would help me figure out what I can do about this.
https://github.com/wimpysworld/deb-get/blob/main/README.md
is where I noticed it after testing installing mdview
via deb-get
(which now supports mdview
. A similar README.md is auto-generated along with the quickemu
man pages from a collection of pieces of markdown, some processed using cog
to ensure consistency, that are then collated and converted via pandoc
.
Created #26 to for in-line HTML issue.
Partially fixed by #27