Markded fails rendaring

Norio Nomura's Avatar

Norio Nomura

Dec 11, 2015 @ 01:53 AM

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

Markded fails rendaring

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

1. Create test.md containing following:
#Header
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

2. Open test.md

// If applicable please attach a sample document that causes the issue for you.
#Header
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

// Configuration (do not edit)
Marked 2 910 (Direct)
OS X Version: 10.11.2
---
additionalMathJaxConfig:
allowPageBreakInCode: 1
bookTxtIsLeanpub: 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: 1
h1IsPageBreak: 0
h2IsPageBreak: 0
hrIsPageBreak: 0
includeMathJax: 0
limitTextWidth: 0
minimalJavaScript: 0
outlineModeExtensions:
permissionGranted: 0
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFooterFirstPage: 0
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: 1
removeMetadataForPreview: 0
removeYAMLHeaders: 0
scrollToEdit: 1
shouldDetectCritic: 0
shouldHighlightMarkupErrors: 0
shouldLoadCritic: 0
syntaxHighlight: 1

  1. Support Staff 1 Posted by Brett on Dec 11, 2015 @ 01:56 AM

    Brett's Avatar

    MultiMarkdown does not recognize that syntax as it is. Either add an empty line after the headline, or switch to Discount in Preferences->Processor.

    -Brett

  2. 2 Posted by Norio Nomura on Dec 11, 2015 @ 02:12 AM

    Norio Nomura's Avatar

    I'm using Discount as I posted:
    > defaultProcessor: Discount (GFM)

    Switching to MultiMarkdown makes rendering as same as on github.com as screenshot.
    ???

  3. Support Staff 3 Posted by Brett on Dec 11, 2015 @ 03:01 AM

    Brett's Avatar

    I'm also noting that your markup does not have an http:// in the url. I'm on mobile right now so I can't test, but will respond when I get back to Mac.

    -Brett

  4. Support Staff 4 Posted by Brett on Dec 11, 2015 @ 03:41 AM

    Brett's Avatar

    Ok, I tested with both processors and as long as there's a blank line,
    it works in either:

    # Header

    [![MIT
    License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

    -Brett

  5. 5 Posted by Norio Nomura on Dec 11, 2015 @ 03:54 AM

    Norio Nomura's Avatar

    I'm expecting Marked to render as same as github when I select Discount (GFM).
    e.g. https://github.com/norio-nomura/ExtraBuildPhase/blob/master/README.md

  6. Support Staff 6 Posted by Brett on Dec 11, 2015 @ 04:00 AM

    Brett's Avatar

    Marked is not GitHub. I claim 99% compatibility, but GitHub processes
    Markdown with specific caveats that are not compatible with the widest
    range of Markdown syntaxes.

    Pressing return once does not seem like much to ask, considering that it
    will then render the same on GitHub as it does in Marked, and will be
    compatible across the board with other markup processors.

    -Brett

  7. 7 Posted by Norio Nomura on Dec 11, 2015 @ 04:04 AM

    Norio Nomura's Avatar

    OK, I understand.
    Thank you for supporting.

Reply to this discussion

Internal reply

        Formatting help / Preview (switch to plain text)

        Already uploaded files

        • Screenshot_2015-12-11_10.52.16.png 301 KB

          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