madskristensen / MarkdownEditor

A Visual Studio extension
Other
409 stars 93 forks source link

Preview Fidelity and HTML Output Fidelity Do Not Match #214

Open smeddows opened 3 years ago

smeddows commented 3 years ago

Installed product versions

Description

When I generate an html file and open it in Edge, I do not see it like I do in the preview. Is there a was to get the views the same? Am I missing a css file? I didn't see one in the generated html.

Steps to recreate

  1. Create md file that contains tables and/or a code block (like xml)
  2. Generate html file from md
  3. Open html file in Edge, IExplorer, Chrome

Current behavior

The html output does not match what is being generated in the preview window

Expected behavior

Fidelity between the HTML that is generated for preview inside of VS and what is generated in the html file.

smeddows commented 3 years ago

Sorry, I found the answer in the Closed issues after I posted this.

Thanks

smeddows commented 3 years ago

Can you provide a little more guidance on how to incorporate the stylesheet into the html generation? I mean, I know I can generate an html file where there is a link to a stylesheet, but I don't really see anything in the generated html that would allow me to have the same syntax highlighting in, let's say, output xml or C#?

Do I just need to include all the css and js files from https://github.com/madskristensen/MarkdownEditor/tree/master/src/Margin?