List item not rendering correctly after a header then a paragraph

jtmusky's Avatar

jtmusky

27 Dec, 2021 04:03 AM

// Please enter a detailed description of the issue // Description of the issue: Sentence after a header stops the next line from rendering a list.

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

Example.

Header that list will work

  • item a
  • item b

Header that list items will not work

This is a simple sentence that the list items wont work.
- item a - item b

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

// Configuration (do not edit) Marked 2 1027 (Mac App Store)

macOS Version: 12.0.1

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: YES
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 103
defaultProcessor: MultiMarkdown
enableMiniMap: YES
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: NO
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: NO
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 27 Dec, 2021 02:01 PM

    Brett's Avatar

    You just need empty lines between your elements. There's no penalty for whitespace, bee generous with it.

    - Brett

  2. 2 Posted by jtmusky on 27 Dec, 2021 06:38 PM

    jtmusky's Avatar

    Thanks for the quick response. The above suggestion does work. I am curious, the site Markdown Preview does render the elements without an empty line between the paragraph and the elements, see the example provided below. Not a big deal, as I will use your empty line method. I do wonder, "Does Markdown have a RFC or Spec?"

    # This is a header
    This is the sentence
    - one
    - two
    

    I do consider this problem solved, if there is a standard process to mark is so. :-)

    Again, Thanks for the quick response.

    -jt

    edit: stating that the issue is solved

  3. jtmusky closed this discussion on 27 Dec, 2021 06:42 PM.

  4. Brett re-opened this discussion on 27 Dec, 2021 07:24 PM

  5. Support Staff 3 Posted by Brett on 27 Dec, 2021 07:24 PM

    Brett's Avatar

    Every "flavor" of Markdown differs. You're using MultiMarkdown, which differs even from Marked's other built in processor (GFM Discount). The thing is, though, that using a blank line between elements works in EVERY Markdown processor, so there's no reason not to do it. It's easier to read, too.

    -Brett
    ________________________________

  6. 4 Posted by jtmusky on 27 Dec, 2021 08:27 PM

    jtmusky's Avatar

    Yeah, I agree. It does make it easier to read. Anywho, thanks for making a great product.

    -jt

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

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