jtxBoard icon indicating copy to clipboard operation
jtxBoard copied to clipboard

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

Open MaDill opened this issue 1 year ago • 5 comments

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

  • Device: Sony Xperia 10, Lenovo Tab 8
  • Android version: Android 13
  • jtx Board version: 2.09.03
  • Downloaded from: Google Play

MaDill avatar Nov 27 '24 19:11 MaDill

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.

itsbrody avatar Nov 29 '24 10:11 itsbrody

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.

rogercreagh avatar Nov 30 '24 13:11 rogercreagh

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....

itsbrody avatar Nov 30 '24 15:11 itsbrody

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

MaDill avatar Dec 01 '24 07:12 MaDill

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?

patrickunterwegs avatar Dec 01 '24 20:12 patrickunterwegs

Hi everyone, sorry that this took so long. As ArnyminerZ hasn't updated the underlying library, I regularly searched for alternatives and found one. I have integrated the new one in #2106 , I'll test and release it soon. My first checks were already successful.

patrickunterwegs avatar Nov 13 '25 14:11 patrickunterwegs