Skip to content

Code Block without title creates syntax Atlassian does not render #16

@AMRoche

Description

@AMRoche

Problem

When using the following render settings;

    codeBlock: {
      languageMap: 'javascript',
      options: {
        title: '',
      },
    },

, or anything that false coalesces (whitespace or null) the code block syntax output is as follows;

{code:title=|language=none|borderStyle=solid|theme=RDark|linenumbers=true|collapse=true}

and renders as

Image

when submitted as comment content to JSM.

Suggestion / Identified fix

Replacing the "{code:title=|" section with "{code:" fixes the issue and renders as follows;

Image

when submitted as comment content to JSM. As such, it seems like submitting a null value / unused property like that to Atlassian isn't supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions