Different margins in different processors (MMD/Discount versus Pandoc)

Nathan P's Avatar

Nathan P

19 Jan, 2022 07:08 PM

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?

  1. Support Staff 1 Posted by Brett on 19 Jan, 2022 08:33 PM

    Brett's Avatar

    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. 2 Posted by Nathan P on 19 Jan, 2022 10:41 PM

    Nathan P's Avatar

    Ah, that did it in the preview!

    Will that affect export to HTML, should I want to do that?

  3. Support Staff 3 Posted by Brett on 20 Jan, 2022 02:50 AM

    Brett's Avatar

    Marked's wrapper will be included in HTML export, your settings should stay the same.

    - Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2022-01-19_at_1.53.08_PM.png 206 KB
  • Screen_Shot_2022-01-19_at_1.53.43_PM.png 214 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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