Different margins in different processors (MMD/Discount versus Pandoc)
Tried searching for this in the discussions but couldn't find anything on this issue.
In short, I get different margins on my preview window, depending on which processor is used. If you look at the attached screenshots, you can see how the margins differ. In each case, I am using the standard and unaltered GitHub Preview Style.
In the first screenshot, I'm using the MMD supplied with Marked2 (although I get the same results using the Discount processor).
In the second, I am using pandoc with the options "-s --from markdown+yaml_metadata_block+footnotes+inline_notes+pipe_tables".
Any suggestions out there for why the margins differ? And how I might fix it so that the preview displays across the entirety of the preview window when I use pandoc?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 19 Jan, 2022 08:33 PM
Take the -s out from your command. That generates a standalone document (with its own body tag) which is then being injected into Marked's preview markup, resulting in a document within a document.
-Brett
2 Posted by Nathan P on 19 Jan, 2022 10:41 PM
Ah, that did it in the preview!
Will that affect export to HTML, should I want to do that?
Support Staff 3 Posted by Brett on 20 Jan, 2022 02:50 AM
Marked's wrapper will be included in HTML export, your settings should stay the same.
- Brett