詩の先頭のスペースやその他のフォーマットを保持する簡単な方法はありますか?

バッククォート(```)を使用してフォーマットを維持することも可能ですが、スタイルが気に入らないかもしれません

hello world
 this is a line with a leading space
  this is a line with 2 leading spaces
   this is a line with 3 leading spaces

TCにアクセスできる場合は、これを軽減するための小さなCSSを追加できます:

code.lang-plaintext {
  font-family: cursive;
  font-size: inherit;
  background: transparent;
  color: inherit;
}
pre:has(code.lang-plaintext) {
  background: transparent;
  border: none;
  padding: 0;
}
```\n
例えば、このような見た目になります:

![CleanShot 2026-07-20 at 08.19.42@2x|690x233](upload://3uT9n52JJh2boYtqaqm3yUUsWyz.png)

ただし、これは実際にはコードスニペットを投稿しない場合(バッククォートは伝統的にこれに使用されます)にのみ有効な解決策ですが、詩のフォーラムではその可能性は低いと思います :slight_smile: