Spectrum: Backslashes being inserted into inline code when messages are edited

Created on 26 Jan 2019  路  5Comments  路  Source: withspectrum/spectrum

https://spectrum.chat/spectrum/hugs-n-bugs/underscores-in-comments-inside-inline-codeblocks-are-converted-to-upon-editing~6702fd99-0454-4686-a12e-b77ae55f263c

Repro:

  • type inline code into the chat input, where the inline code contains an underscore
  • edit the message
  • see that a backslash has been inserted before the underscore
  • save the message
  • see that the saved message persisted the backslash
Bug

All 5 comments

Great catch! @sstur is there a reason why draft-js-export-markdown adds backslashes in front of underscores in inline code?

Hmm 馃that sounds like a bug. I'll look into it.

Take a peek at this for me if you would.
https://github.com/sstur/draft-js-utils/pull/160

Done. [email protected] is live.

Appears to work! Gonna ship today, thanks so much for the quick fix here @sstur!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

entrptaher picture entrptaher  路  3Comments

mknepprath picture mknepprath  路  7Comments

mxstbr picture mxstbr  路  5Comments

atlx picture atlx  路  5Comments

mxstbr picture mxstbr  路  4Comments