Markdown interpretation problem

Mario Eberhard's Avatar

Mario Eberhard

16 Dec, 2018 01:40 PM

// Please enter a detailed description of the issue // Description of the issue: Previewed version of a code block is wrong. Marked seems to try to detect file paths and is then confued.
```sh /jdk/bin/jstatd -J

Actual Output:
<<[][jdk/bin/jstatd -J]

Expected Output: /jdk/bin/jstatd -J

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

  1. Put the above input in a
  2. Open the .md file with Marked
  3. Look at preview
  4. Be confued

// If applicable please attach a sample document that causes the issue for you.
/jdk/bin/jstatd -J</code>

// Configuration (do not edit)
Marked 2 965 (Mac App Store)  
macOS Version: 10.14.2  
allowPageBreakInCode: TRUE  
bookTxtIsLeanpub: TRUE  
summaryMdIsGitBook: TRUE  
codeIsPoetry: TRUE  
codeCanWrap: TRUE  
collapsibleHeadlines: TRUE  
convertGithubCheckboxes: TRUE  
convertYAMLToMMD: TRUE  
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML  
defaultPreviewStyle: GitHub  
defaultProcessor: Discount (GFM)  
enableMiniMap: TRUE  
excludeBlockQuotesFromCounts: TRUE  
excludeFootnotesFromCounts: TRUE  
excludeVerbatimFromCounts: TRUE  
excludeCaptionsFromCounts: TRUE  
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml  
githubNewlines: TRUE  
h1IsPageBreak: TRUE  
h2IsPageBreak: TRUE  
hrIsPageBreak: TRUE  
includeMathJax: TRUE  
limitTextWidth: TRUE  
minimalJavaScript: TRUE  
permissionGranted: TRUE  
printHeaderFirstPage: TRUE  
printFooterFirstPage: TRUE  
processHTMLFiles: TRUE  
removeMetadataForPreview: TRUE  
removeYAMLHeaders: TRUE  
scrollToEdit: TRUE  
shouldDetectCritic: TRUE  
shouldHighlightMarkupErrors: TRUE  
shouldLoadCritic: TRUE  
syntaxHighlight: TRUE  
syntaxHighlightOnlyLang: NO

  1. 1 Posted by Mario Eberhard on 16 Dec, 2018 01:42 PM

    Mario Eberhard's Avatar

    The automatic parser seems to have mangled my example do. So here as attachment.

  2. Support Staff 2 Posted by Brett on 16 Dec, 2018 02:42 PM

    Brett's Avatar

    This is because of support for iA Writer style content blocks, which
    allow any line beginning with / to be a file include path. The next
    update will prevent this from happening inside of code blocks. In the
    meantime, if the line starts with 4 or more spaces or any character
    other than /, it will prevent it from happening. I know that's a bad
    workaround, but the next update should be released soon and the issue is
    already corrected.


Reply to this discussion

Internal reply

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

Attaching KB article:


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