https://bugs.kde.org/show_bug.cgi?id=487353

            Bug ID: 487353
           Summary: The tilde sign ("~") doesn't get handled properly if
                    paired with single or double quotes
    Classification: Applications
           Product: Marknote
           Version: 1.2.1
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: m...@kaidan.im
          Reporter: nep...@pm.me
                CC: c...@carlschwan.eu, m...@kaidan.im
  Target Milestone: ---

Created attachment 169695
  --> https://bugs.kde.org/attachment.cgi?id=169695&action=edit
Handling_Of_Tilde.png

SUMMARY
The tilde sign ("~") doesn't get handled properly if paired with single or
double quotes (e.g. as part of a terminal command). Instead of appearing as
plain text it gets interpreted as a markdown command.

STEPS TO REPRODUCE
1. Add this text to a note: cp "~/.local/path with spaces/test.txt"
"~/.local/new path with spaces/"
2. Switch to another note and back to the note with the command to refresh it

OBSERVED RESULT
Instead of displaying the command properly it interpreted parts of it as a
markdown command. The first part now has a line through it and the tilde sign
("~") is missing from both parts of the command.

In the actual .md file it now looks like this: cp "~~/.local/path with
spaces/test.txt" "~~/.local/new path with spaces/"

This happens with single quotes (" ' ") or double quotes (" " ").

If no quotes are included in the command it is displayed properly.

EXPECTED RESULT
The text gets displayed properly as basic text.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-zen1-1-zen (64-bit)
Graphics Platform: Wayland

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to