I know there’s probably a good technical or historical explanation, but it’s very irritating to copy/paste text into Lemmy to have it looking like poo after posting. Is there an Android editor that will add double spaces to ends of lines so it’s wysiwyg? Bonus if it will also insert "> " at the beginning of lines for quoting selected blocks of text. Maybe this can be done with a JavaScript webpage?
The idea of MD is that text remains human readable in both your code editor and converted to HTML.
In the code editor you’ll want to add line breaks because other wise you get horizontal overflow.
The final HTML does things differently because of the concept of pargaraphs.
I find that neither “historical” nor irritating.
Some implementations of MD do exactly what you want btw.
slazer2au@lemmy.world 5 months ago
Hot take: Sentences are suppose to end in a double space. It is why smartphones will sub in a . if you do a double space.
undefined@lemmy.hogru.ch 5 months ago
If you type a double space on iOS it’ll insert just one space then a period. So
becomes..mic_check_one_two@lemmy.dbzer0.com 5 months ago
That comes from typewriters, before kerning was a thing. Each key press moved the paper an equal distance, so every single character was evenly spaced. Even narrow characters like i or l had the same amount of space on each side of them. Monospaced font is easier to read when sentences end with a double space. But with modern kerned fonts, the double space is pointless.
Phones sub in a period for simplicity, so you don’t need to reach for the period key. It doesn’t actually include the double space at all; it removes the first space and replaces it with a period. If you’re “supposed” to double space after each sentence, why does your phone remove that first space?
Sunsofold@lemmings.world 5 months ago
Ending a sentence with two spaces differentiates the end of the sentence, full stop. Kerned, monospace, serif, sans, heavy weight, light weight, double spaced lines, single spaced lines, whatever. Two spaces at the end of the sentence helps make the end of a sentence clearer in every case.
XeroxCool@lemmy.world 5 months ago
If that was the reason smartphones place periods, they’d leave double spaces and throw a period before them. They don’t, they replace a space with the period. It’s just a shortcut with a large target button.
kkj@lemmy.dbzer0.com 5 months ago
They also delete the second space lol
slazer2au@lemmy.world 5 months ago
Ike.
9limmer@lemmy.zip 5 months ago
That’s an entirely different issue. I think what you’re talking about is just a shortcut for typing quickly. Even then a double space is replaced with a period and single space.
I’m talking about two paragraphs with two linefeeds will be displayed as a single paragraph unless there are two spaces before the linefeeds.
Steve@communick.news 5 months ago
Two linefeeds will be two paragraphs.
Like that.
Two spaces are needed before a linefeed to make the one paragraph.
Like this.
mike_wooskey@lemmy.thewooskeys.com 5 months ago
“Supposed to”? That originated back before desktop publishing existed, when typed communication (as in typewriters) were only monospace, and adding 2 spaces between sentences made text easier to read.
In modern times (as in the past 30 years or so, i think), while adding 2 spaces between sentences might remain as a preference or in a style guide, you haven’t been “supposed to” do it.
Maybe now that markdown is so commonplace, it’ll make a return?