cgwire / kitsu

Collaboration Platform for Animation and VFX Productions
https://kitsu.cg-wire.com
GNU Affero General Public License v3.0
387 stars 105 forks source link

Comments: dot separted numbers generates the creation of an ordered list when comment is posted #1396

Closed mdk-man closed 5 months ago

mdk-man commented 6 months ago

Context

Studio name: independant Kitsu version: 0.18.10 Production type:

Describe the bug

When adding a comment on a task, typing numbers separated by a dot on a new line will generate an ordered list (ol tag). Typed numbers are replaced by an automatic and random numbering (displayed information is different from the written content).

Users can't reference shots as "xx. yyy" (where xx is seq nb, yyy shot nb) in a comment. As a workaround users can use a coma instead.

Screenshots

See attachment

Desktop (please complete the following information):

kitsu_figures_bug

NicoPennec commented 6 months ago

The comment is parsed as a markdown text, so the "number + dot" notation generates an ordered list.

The workaround is to escape the dot with a reverse slash as below to rendering 1. 3. 15. 20

1\. 3\. 15\. 20
tetsuoanimation commented 6 months ago

Please don't remove markdown 😉 - we use it a lot!

Maybe parsing as a list can be constrained to a newline before the number or a dash?

( Related when implementing this might be that a simple newline is not parsed as a newline in comments - you need to press it twice and have a blank line right now )

frankrousseau commented 5 months ago

The @NicoPennec looks good.