リッチテキストを貼り付けた際に、Markdown に余分なスペースが追加される

Not sure if this is intentional / necessary for Markdown related reasons, but just noticed when I pasted some rich text into the composer, strings with formatting (bold / italic) seem to have extra spaces inserted before and after the * or ** tags.

See example here e.g. the URL in the quoted text or the bolded **SPRING2019** near the bottom.

The quoted text above was copied from a web page; the below “sale” text copied from an email. Not sure if this always happens but at least two sources where I’m seeing it.

「いいね!」 3

This bug has existed for quite a while @vinothkannans I’ve noticed it many times.

「いいね!」 10

この問題について、Gmail、Google ドキュメント、Microsoft Word、通常の HTML ウェブページからコピーしたテキストを貼り付けてテストしました。これらのすべてのソースから貼り付けると、太字やイタリックテキストの周囲に余分なスペースが追加されてしまいます。インラインコードブロックにも余分なスペースが追加されますが、取り消し線テキストには追加されません。例えば、自分のウェブサイトのテキストをエディタに貼り付けると、以下のような現象が発生します。

WYSIWYG Markdown への自動変換は非常に便利なので、エディタに貼り付けた後、別のプログラム(Vim や Notepad++ など)で正規表現を使って余分なスペースを削除し、再度貼り付けるという作業を繰り返しています。少しハック的な方法ですが、ファイルを保存して Pandoc で Markdown を取得するよりは楽です。

もし余分なスペースの追加が RTF/HTML の貼り付けに必須ではないのであれば、それらを追加しないようにするのは良いことだと思いませんか?

「いいね!」 6

これは以下の通り修正されました:

:confetti_ball:

「いいね!」 6