TechbeeAT / jtxBoard

jtx Board allows you to manage your Journals (like meeting minutes), Notes and Tasks in one Android app. The app is compatible with the iCal standard (RFC5545) and is integrated with DAVx5 to allow the synchronisation of entries through CalDAV.
https://jtx.techbee.at/
GNU General Public License v3.0
398 stars 11 forks source link

[BUG] < and > are not displayed when used in description #1643

Open MaDill opened 1 week ago

MaDill commented 1 week ago

Describe the bug when using ">" or "<" in a task, it is not shown when the task is displayed

To Reproduce Create a task and write in the task description 5>4 and save it. View it in the collection list.

Screenshots Create the task: jtx_Board_Screenshot_20241127-185250

View the task: jtx_Board_Screenshot_20241127-185239

Device and version

itsbrody commented 5 days ago

I comment here, because my oberservation seems the same root cause. I have added a mathematical calculation inside the description and these have the same problems displaying

typed: 180 x / ( 2 365 ) without spaces after save its displayed as 180x/(2365), also using the (code?) markdown (i.e. <> from edit toolbar does not help --> same display output, besides that it is underlyed in light red.

rogercreagh commented 4 days ago

I vaguely recall that this was raised as an issue in the very early days (but I can't find it here - it may have been on gitlab) I thought it had been fixed, but it seems to have come back.

Full code blocks wrapped with three backticks are also displayed completely blank, inline code blocks (wrapped with single backticks) get displayed with a pink background and with dodgy characters suppressed.

If you escape the individual chars by preceding with a backslash \*\<\> (that was wrapped with a single backtick), here is how github markdown displays it when not in an inline code block *\<> . The the backslashes should be suppressed on rendering like that.

jtxB displays \*\\<\> which is not good

Its either the markdown editor or the markdown renderer that is messing things up.

The really simple quick fix is to disable markdown for the entry (on the three dots menu to right while viewing or editing) - but if you use markdown formatting elsewhere that is no good.

There will be no solution that works for both markdown and plain text I fear - you need to stick to one or the other, and the markdown engine has a bug in failing to display both chars in code blocks and escaped chars correctly.

itsbrody commented 4 days ago

Its either the markdown editor or the markdown renderer that is messing things up.

when these are components used in jtxBoard, either they need to be fixed (or maybe first to be updated for inside of jtxBoard); whatever helps. A workaround is a workaround....

MaDill commented 3 days ago

I tried the lines in these online markdown editor https://stackedit.io/ and https://dillinger.io/ and both use the text without issue 1 2

patrickunterwegs commented 3 days ago

Hi everyone! Thank you for your comments. As pointed out already, it's not an issue within jtx Board itself, but an issue of the Markdown interpreter. So the first question here I address to @ArnyminerZ - thank you your library first of all. I have seen you haven't provided a new version/updates in quite some time. Do you plan to continue working on your library or should I rather look out for alternatives?