nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.64k stars 437 forks source link

One liner code block renders as empty #10253

Open mpivchev opened 1 year ago

mpivchev commented 1 year ago

How to use GitHub


Steps to reproduce

  1. Write a one line code block like:
image

Expected behaviour

The code actually gets reformatted like:

image

... and doesn't show up:

image

Actual behaviour

Should look like this:

one liner

Browser name: Reproducable on Safari but visible on all

nickvergessen commented 1 year ago

Works fine here 🤔

mpivchev commented 1 year ago

Works fine here 🤔

Reproducable on Safari but visible on all browsers

Antreesy commented 1 year ago

Reproducable on Safari but visible on all browsers

Please test it here as well, to see, if it's a Talk or library issue: https://nextcloud-vue-components.netlify.app/#/Components/NcRichText?id=ncrichtext-1

nickvergessen commented 1 year ago

Can not reproduce on iPad Safari

nickvergessen commented 1 year ago

Please test it here as well, to see, if it's a Talk or library issue:

I did, it seems to work there. grafik

But can also reproduce the missing line in safari locally: grafik

nickvergessen commented 1 year ago

The actual problem seems to be the posting. If I post one line code from another browser it also renders on Safari.

But if I post the message it gets sent as:

  ```hi\n```

instead of

  ```\nhi\n```

and therefore the single line/word is interpreted as "language"/flavor

grafik