this post was submitted on 18 Mar 2024
401 points (99.3% liked)
196
16441 readers
1603 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pro tip: ordinarily, Markdown will delete a single line break in the middle of a block of text, so that if for some reason you're on a system where you have to do your line wrapping manually, you can without worrying about it messing up your formatting. Normally, the only way around this is by putting two line breaks in a row for a paragraph break. You can, however, force Markdown to insert a single line break by putting two spaces at the end of a line.
This is George. There are two spaces at the end of the first two lines of his body.
O
/|\
/ \
He's a lot shorter than Bob, and a lot better looking.
(His head is still tilted to the side a little bit since Markdown strips leading spaces at the beginning of a line. I'm not aware of a way to avoid that besides putting your ASCII stick figure inside of a code block (triple backticks on their own line before and after text you want to stay formatted how it is). If anyone has suggestions possibly involving little known Unicode characters please let me know.)
Alt+255 gives you an invisible character but I'm on a phone so I can't check if that fixes George.
O
O
" "
It doesn't seem to work. Or I copied the wrong character.
https://www.i2symbol.com/alt-codes/non-breaking-space-alt-code-255
A lot of front ends strip it out since it can be used in so many disruptive ways.
In my app I don't see the space normally, but when I reply to your comment it shows a focused view which DOES seem to show the space.
Replies, in most Lemmy (and previously Reddit) apps I've used generally show the "pure" markdown when replying, rather than the formatted variant.
If you reply to this comment you should see this line as being broken up.
and this line as having a few regular spaces in the front.
fixed bob thank u