markdown uses asterisks for italics.
2 asterisks is bold
3 is italic and bold
wire_less_ not wire_free_
Appoxo@lemmy.dbzer0.com 2 weeks ago
exu@feditown.com 2 weeks ago
I know. Underscores also work though for italics
poolcritter@pawb.social 2 weeks 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 weeks ago
The italics show up for me fine, so they’re getting through!
exu@feditown.com 2 weeks ago
I changed it in the edit
moopet@sh.itjust.works 2 weeks ago
Ah, gotcha.
f4f4f4f4f4f4f4f4@sopuli.xyz 2 weeks 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 weeks 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 weeks 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 weeks 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 weeks ago
You can escape formatting characters with a leading backslash.