markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Export XHTML file that preview the same as rendered file

Open huangjj27 opened this issue 8 years ago • 11 comments
trafficstars

I try finding a simple way export Readable document from markdown, until I meet this markdown viewer. However, the PDF file saved from chrome has some problem with styling. (for example, the margin line with page breakings seem not so beautiful, and some table's style also missed for some themes), so if there is a way to export a XHThtml file that get all js, images tables in a file, the plugin will be the perfect one!

here are some requirements:

  • [ ] usable toc and anchor
  • [ ] included images(svg, png, jpg etc.) in the exported file
  • [ ] same style tables as rendered( will be perfect if all thing get the same as rendered page)

huangjj27 avatar Sep 21 '17 06:09 huangjj27

Interesting idea, I'll think about implementing an export option.

simov avatar Sep 21 '17 07:09 simov

Any news on this?

MarianoWalter avatar Feb 13 '19 20:02 MarianoWalter

Nothing new,even havn’t gotten any feedback from author. It seems that simov has deperated this project?

huangjj27 avatar Feb 14 '19 01:02 huangjj27

Yes, I don't have that feature ready yet, and no, I haven't abandoned the project. That being said, it's obvious that it's taking me way too long to get to it.

simov avatar Feb 14 '19 07:02 simov

+1 for exporting to HTML. I thought it would be possible to just view the source of the rendered page, but alas it seems it's not that simple, or I'm missing something.

v-ko avatar May 30 '19 09:05 v-ko

+1,Hope this feature can be implemented

ghost avatar Mar 15 '20 03:03 ghost

+1

Lizxs avatar Dec 04 '20 03:12 Lizxs

+1

aemonge avatar Nov 12 '21 13:11 aemonge

Any news?

Nebula-Developer avatar Sep 21 '23 09:09 Nebula-Developer

Not yet, though it is definitely on my backlog. In last release I did some improvements around the PDF export, namely breaking the content between pages a bit more intelligently, so hopefully that helps for at least some of the cases. A while ago I tried exporting into MHTML instead as there is an API for that, but the result was not great, and also a MHTML viewer is needed.

simov avatar Sep 21 '23 10:09 simov

I would also be very happy about such an export function. Is there any news?

At the moment as a workaround I copy the HTML from Chrome's Developer tools. But the generated HTML is not rendering the TOC as Chrome does, but simply appends it to the end. Also the size (small, large, ...) is not respected correctly. Do you have any hints for patching the generated HTML respectively?

fmmoser avatar Dec 21 '23 00:12 fmmoser