GitHub style doesn't show blank lines when blank lines between bullet items

Keith Irwin's Avatar

Keith Irwin

17 May, 2018 03:57 AM

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

GitHub style:

When you create a list of bullet items, one line per bullet, Marked correctly renders this as a bulleted list without a paragraph sized blank line between items.

When you create a list of bullet items with a blank line between each bulleted line (like paragraphs), Marked no longer renders each bullet as a paragraph (with extra space between each one), even though Github itself does.

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

- GitHub style - Discount (GFM) markdown processor

  1. Use the GitHub style
  2. Use the Discount (GFM) markdown processor
  3. Create a document with bulleted lists
  4. Put a blank line between them.
  5. Note in the Marked render there is NOT a blank line between bulleted items. (There used to be.)

See Github render (and what Marked used to look like):

The above doc is also attached.

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

// Configuration (do not edit) Marked 2 947 (Direct)

macOS Version: 10.13.5

allowPageBreakInCode: TRUE
bookTxtIsLeanpub: TRUE
summaryMdIsGitBook: TRUE
codeIsPoetry: TRUE
codeCanWrap: TRUE
collapsibleHeadlines: TRUE
convertGithubCheckboxes: TRUE
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
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

  1. Support Staff 1 Posted by Brett on 17 May, 2018 08:17 PM

    Brett's Avatar

    The paragraph renders, it just doesn't display a margin. Various
    formatting was causing some confusion among users, so the best solution
    was to remove additional margins when paragraph tags were generated
    unexpectedly. If you'd like to restore the default styling, add this to
    Preferences->Style->Additional CSS:

    #wrapper li > p { margin-bottom: 16px; }

    Let me know if that helps.


  2. 2 Posted by Keith on 18 May, 2018 02:08 AM

    Keith's Avatar

    That works. Thanks!

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.28 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