markdown uses asterisks for italics.
2 asterisks is bold
3 is italic and bold
wire_less_ not wire_free_
Appoxo@lemmy.dbzer0.com 2 months ago
exu@feditown.com 2 months ago
I know. Underscores also work though for italics
poolcritter@pawb.social 2 months ago
Underscores do not work inside a word (so my_long_identifier won’t accidentally become mylongidentifier, but _foo_ will become foo)
moopet@sh.itjust.works 2 months ago
The italics show up for me fine, so they’re getting through!
exu@feditown.com 2 months ago
I changed it in the edit
moopet@sh.itjust.works 2 months ago
Ah, gotcha.
f4f4f4f4f4f4f4f4@sopuli.xyz 2 months ago
_ It works on my end (without leading and trailing spaces) _ -> It works on my end (without leading and trailing spaces)
exu@feditown.com 2 months ago
Looks like it’s specifically when an underscore follows a normal letter instead of whitespace. Not sure if that’s as intended by the markdown spec, incorrect in Voyager or unspecifed
With underscores:
normal_italics_ normal italics
With asterisks:
normalitalics normal italics
Passerby6497@lemmy.world 2 months ago
That’s almost certainly intended behavior, otherwise any underscore would trigger formatting (much like the asterisk does instead of allowing snake_case_naming
black0ut@pawb.social 2 months ago
The markdown specification recommends using asterisks specifically for that. It is not exactly intended, but left to the interpreter. Most markdown interpreters leave the underscores intact if they’re inside a word.
https://www.markdownguide.org/basic-syntax/#italic-best-practices
bitjunkie@lemmy.world 2 months ago
You can escape formatting characters with a leading backslash.