Skip to content

"Preview markdown" is also applied to non-markdown fragments #27

Description

@dvdmunckhof

Hi, I just upgraded from v1 to v2.0.1 and imported my data. Everything works fine so far, I just found one minor issue regarding the markdown preview. It seems like the markdown preview setting isn't reset when switching fragments.

Reproduction steps

  1. Create a snippet
  2. Set the language to Markdown and add some Markdown text
  3. Add a new fragment to the snippet
  4. Set the language of the newly created snippet to anything but markdown (HTML for example) and add some content
  5. Go back to the first fragment (the Markdown text)
  6. Enable the Markdown preview
  7. Go back to the 2nd fragment (non-Markdown)

Expected result
The content of the 2nd fragment should be shown, with code highlighting.

Actual result
The content is rendered as markdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions