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

The `Download as HTML` button doesn't keep CSS styles

Open brian6932 opened this issue 2 years ago • 1 comments

So what I found interesting, is that the method described here: https://github.com/KeithLRobertson/markdown-viewer/issues/35#issuecomment-389544845 Works perfectly, however the Download as HTML button does not keep CSS and seems to have some weird formatting, here is an example file:

  1. Original Markdown file: schema.md
  2. How it's rendered in my browser: https://i.nuuls.com/BPDZX.png
  3. File output of Download as HTML button: https://hateful-brick.surge.sh/
  4. How the output is rendered in my browser: https://i.nuuls.com/SMbZy.png
  5. Using the method described in https://github.com/KeithLRobertson/markdown-viewer/issues/35#issuecomment-389544845 file output: https://nine-club.surge.sh/
  6. How it's rendered in my browser: https://i.nuuls.com/fOdkT.png

brian6932 avatar Jun 11 '22 19:06 brian6932

Ok that’s pretty weird, your downloaded output seems to have all the CSS tags, they’re just empty…

Cimbali avatar Jun 12 '22 23:06 Cimbali