Skip to content

Lines that start with a colon are escaped upon save #969

@ainola

Description

@ainola

Describe the bug
Related to #325 in that escapes are wrongly saved into the file under specific circumstances. In this case, it appears to happen only when the line begins with a colon (I use markdown with vimwiki and tags start with a colon)

To Reproduce
Steps to reproduce the behavior:

  1. Create new .md file from the web interface
  2. Input the following text:
test:
:test:
:test:test:
    :test:
  1. Close the document
  2. Download the document and open in a text edit
  3. Observe that lines 2 and 3 now begin with a slash:
test:
\:test:
\:test:test:
    :test:

Expected behavior
Preserved documents

Client details:

  • OS: Arch Linux
  • Browser: Firefox
  • Version: Latest
  • Device: Laptop
Server details

Text app version: 3.0.1

Operating system: Debian 10
Web server: Nginx

Database: PostgreSQL 11

PHP version: 7.3

Nextcloud version: 19.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions