Es ist auch möglich, Backticks (```) zu verwenden, was die Formatierung beibehält, aber das Styling gefällt dir vielleicht nicht
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
Und wenn du Zugriff auf TC hast, könntest du etwas kleines CSS hinzufügen, um das zu mildern:
code.lang-plaintext {
font-family: cursive;
font-size: inherit;
background: transparent;
color: inherit;
}
pre:has(code.lang-plaintext) {
background: transparent;
border: none;
padding: 0;
}
Was so aussieht (zum Beispiel):
Aber das ist natürlich nur eine gute Lösung, wenn niemand tatsächliche Code-Schnipsel postet (wofür Backticks traditionell verwendet werden), aber ich schätze, die Wahrscheinlichkeit dafür ist auf einem Gedichtforum gering ![]()
