Json code block with single property breaks layout

Denys Vuika's Avatar

Denys Vuika

16 Feb, 2017 08:17 PM

// Please enter a detailed description of the issue
// Description of the issue:

Layout gets corrupted when using json block with a single property

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

1. Create the following block

    "sourceMap": true

2. All the text below the block is now rendered as json

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

// Configuration (do not edit)
Marked 2 930 (Mac App Store)
OS X Version: 10.12.3
allowPageBreakInCode: 1
bookTxtIsLeanpub: 1
summaryMdIsGitBook: 0
codeIsPoetry: 0
collapsibleHeadlines: 0
convertGithubCheckboxes: 1
convertYAMLToMMD: 0
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
defaultProcessor: Discount (GFM)
enableMiniMap: 0
excludeBlockQuotesFromCounts: 0
excludeFootnotesFromCounts: 0
excludeVerbatimFromCounts: 0
excludeCaptionsFromCounts: 0
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: 0
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 1
limitTextWidth: 0
minimalJavaScript: 0
permissionGranted: 0
printHeaderFooterFirstPage: 0
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 1
shouldHighlightMarkupErrors: 1
shouldLoadCritic: 0
syntaxHighlight: 1

  1. Support Staff 1 Posted by Brett on 16 Feb, 2017 08:27 PM

    Brett's Avatar

    That's a strange one, but I am able to replicate. Noting that adding one
    newline before the closing curly bracket fixes it, and escaping the
    first one (\{) renders properly (though the slash is visible). Even
    putting a single space before either one works… so I'm going to have
    to look into the regular expressions that handle the code blocks and see
    what I can figure out. Thanks for the report.


  2. Support Staff 2 Posted by Brett on 26 Feb, 2019 05:36 PM

    Brett's Avatar

    I believe this is fixed (cleaning up old tickets here). Let me know if you're still seeing it at all.

  3. Brett closed this discussion on 26 Feb, 2019 05:36 PM.

Comments are currently closed for this discussion. You can start a new one.

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