Bug 487353 - The tilde sign ("~") doesn't get handled properly if paired with single or double quotes
Summary: The tilde sign ("~") doesn't get handled properly if paired with single or do...
Status: REPORTED
Alias: None
Product: Marknote
Classification: Applications
Component: General (other bugs)
Version First Reported In: 1.2.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: mbruchert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 06:58 UTC by hbr
Modified: 2024-05-22 06:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Handling_Of_Tilde.png (33.83 KB, image/png)
2024-05-22 06:58 UTC, hbr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hbr 2024-05-22 06:58:45 UTC
Created attachment 169695 [details]
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