All tildes in code fences change to backticks upon switching off source code mode · Issue #1788 · marktext/marktext · GitHub
Skip to content

All tildes in code fences change to backticks upon switching off source code mode #1788

Closed

Description

@sriharshachilakapati

Description

CommonMark speck specifies that code blocks can be defined with either 3 backticks or tildes. However, when we open a document which is formatted using tildes for the code fences, they are automatically swapped with backticks.

  • Can you reproduce the issue?

Steps to reproduce

  1. Open a document which uses tildes for code fences.
  2. It automatically changes to backticks.
  3. Enable source code mode, and change them back to tildes.
  4. Disable source code mode and re-enable it.
  5. You'll see that the backticks are back.

Expected behaviour:

Mark Text editor should respect the Common Mark spec and should keep the existing formatting.

Actual behaviour:

Mark Text editor doesn't respect the Common Mark spec and keeps changing the formatting.

Versions

  • Mark Text: v0.15.1
  • Operating system: macOS Mojave 10.14.6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions