Misinterpretation of Bear's markdown

Anne Voss's Avatar

Anne Voss

06 Mar, 2022 07:24 PM

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

When using Marked2 to do a live preview of a Bear note, sometimes the parsing/interpretation goes wrong, which can be solved by adding an extra newline after the paragraph or line before the point where things go wrong.

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

  1. Type a piece of text with at least two headings in it (heading, text, heading, text)
  2. Make sure there are NO additional newlines after the heading and the body parts.
  3. In markdown:
    # heading body text….
    # next heading body text.
  4. The second heading shows up exactly as typed (hash space heading text) instead of an actual heading.
  5. Insert an additional newline after each body text part and the problem goes away.

// 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.2.1

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: YES
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 100
defaultProcessor: MultiMarkdown
enableMiniMap: YES
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
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: YES
shouldLoadCritic: NO
syntaxHighlight: NO
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 06 Mar, 2022 08:55 PM

    Brett's Avatar

    You're using the MultiMarkdown processor which requires newlines before headings. Quite a few processors do, really, so the universal solution is to always include a newline before a header.

    - Brett

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