simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.1k stars 136 forks source link

Export XHTML file that preview the same as rendered file #34

Open huangjj27 opened 7 years ago

huangjj27 commented 7 years ago

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:

simov commented 7 years ago

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

MarianoWalter commented 5 years ago

Any news on this?

huangjj27 commented 5 years ago

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

simov commented 5 years ago

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.

v-ko commented 5 years ago

+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.

ghost commented 4 years ago

+1,Hope this feature can be implemented

Lizxs commented 3 years ago

+1

aemonge commented 3 years ago

+1

Nebula-Developer commented 1 year ago

Any news?

simov commented 1 year ago

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.

fmmoser commented 11 months ago

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?