mdview icon indicating copy to clipboard operation
mdview copied to clipboard

in-line html and relative links are not ideal

Open philclifford opened this issue 1 year ago • 5 comments

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>&lt;!– [[[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.

philclifford avatar Nov 02 '23 12:11 philclifford

I'm using a third-party library to handle the conversion. Maybe there's a better option out there?

mapitman avatar Nov 11 '23 01:11 mapitman

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.

mapitman avatar Nov 16 '23 01:11 mapitman

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.

philclifford avatar Nov 16 '23 15:11 philclifford

Created #26 to for in-line HTML issue.

mapitman avatar Feb 20 '24 02:02 mapitman

Partially fixed by #27

mapitman avatar Feb 24 '24 18:02 mapitman