Code listings lose indentation when exporting (or printing) to PDFs.

David Green's Avatar

David Green

28 Jan, 2017 06:14 AM

// Please enter a detailed description of the issue
// Description of the issue:
Creating a section of text that is code using
``` lead-ins displays well in Marked but when exported
to PDF the identation is lost.

// Please enter a list of steps required to reproduce the issue
// Steps to reproduce:

1. Run marked on file with code, see good list
2. Export to PDF (or Print to PDF), see indentation lost

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit)
Marked 2 925 (Direct)
OS X Version: 10.12.2
allowPageBreakInCode: 1
bookTxtIsLeanpub: 0
codeIsPoetry: 0
collapsibleHeadlines: 1
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
defaultProcessor: MultiMarkdown
enableMiniMap: 1
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: txt, md, mmd, mdown, html
githubNewlines: 0
h1IsPageBreak: 1
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 0
limitTextWidth: 0
minimalJavaScript: 0
permissionGranted: 1
printHeaderFooterFirstPage: 0
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 1
shouldLoadCritic: 0
syntaxHighlight: 1

  1. 1 Posted by David Green on 28 Jan, 2017 06:24 AM

    David Green's Avatar

    I tried exporting to all the other formats with a variety of problems. The work around turned out to be to copy the contents of the Marked window with copy and then paste it to a Word document (and then let Word produce a PDF).

  2. Support Staff 2 Posted by Brett on 28 Jan, 2017 01:28 PM

    Brett's Avatar

    This issue is resolved for the upcoming release, but there's a temporary


  3. 3 Posted by David Green on 28 Jan, 2017 04:18 PM

    David Green's Avatar


Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • 1.08 KB
  • marked-possible-bug.pdf 49.6 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


? 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