ユーザーがコピー&ペーストした場合
```sh
systemctl reboot
```
をDiscourseの編集フォームに貼り付けると、そのコンテンツは以下のようになります。
||```sh|
|---|---|
||systemctl reboot|
||```|
これは誤りです。明らかにテーブルではなくリストです。
これをdiscuss.kde.orgとmeta.discourse.orgでテストしました。
ユーザーがコピー&ペーストした場合
```sh
systemctl reboot
```
をDiscourseの編集フォームに貼り付けると、そのコンテンツは以下のようになります。
||```sh|
|---|---|
||systemctl reboot|
||```|
これは誤りです。明らかにテーブルではなくリストです。
これをdiscuss.kde.orgとmeta.discourse.orgでテストしました。
```sh
systemctl reboot
```
```sh
systemctl reboot
```
@JammyDodger、もう一度試してください。リスト番号を削除しました。これで問題なく動作するはずです。
ちなみに、あなたのコメントを引用すると以下のようになります。
[quote="JammyDodger, post:2, topic:266325"]
再起動:
0. ```
systemctl reboot
```
```
0. 再起動:
```sh
systemctl reboot
```
```
[/quote]
…これで合っていますか?
正直なところ、現時点で何をコピー&ペーストすればいいのかよくわかりません。![]()
はは。
```sh
systemctl reboot
```
ページからドラッグ選択してテキストをコピーすると、以下のようになります。
しかし、「コピー」ボタンを使用してコピーすると、貼り付け時に期待どおりのテキストのみを取得できます。
「コピー」ボタンを使用したクリップボードの内容:
TEXT:
b'```sh\\n\\tsystemctl reboot\\n\\t```'
text/plain:
b'```sh\\n\\tsystemctl reboot\\n\\t```'
ページ上でドラッグ選択したことによるクリップボードの内容:
TEXT:
b'\\t```sh\\n\\tsystemctl reboot\\n\\t```'
text/html:
b'<span style="color: rgb(199, 199, 199); font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 17.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(60, 60, 60); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">\\t```sh\\n\\tsystemctl reboot\\n\\t```</span>'
text/plain:
b'\\t```sh\\n\\tsystemctl reboot\\n\\t```'
おそらく、各行の先頭にあるタブストップが問題を混乱させているのでしょう。クリップボードの内容を解析する際に、最初の列が常に空であれば、リストとして扱わないようにするのかもしれません。
これは少し異常な状況のように思えますが、自然な状況で発生することはありますか?通常、投稿にタブストップ文字が含まれることはありません。
rokejulianlockhart, post:1, topic:266325
これは明らかにリストであり、テーブルではありません
コンピュータにとっては、最初の列が空のタブ区切りテーブルとまったく同じように見えます。
長年かけて学んだことは、ドラッグ選択によるコピー&ペーストは決して信用できないということです…
それはおそらくユーザーが決定すべきです。
```tsv
```
結局のところ、タブ区切り表はワードラップを有効にしては機能しないはずなので、スクロールを強制するもので囲む必要があります。
そして、インデント(リストやフェンス付きコードブロックを区切るため)も
有効(そして一般的)なマークダウンだからです。