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?

  • A_norny_mousse@feddit.org
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    2 days ago

    The idea of MD is that text remains human readable both in your plain text editor and as HTML.
    In the 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.

    • 9limmer@lemmy.zipOP
      link
      fedilink
      arrow-up
      8
      arrow-down
      2
      ·
      3 days ago

      I kind of understand what you’re saying. But in an age of smartphones, I have to manually add double spaces at the end of every line for the end product to display as it appears when editing it. This probably seems trivial and stupid for folks on desktop, but even Discord has this figured out. Is this something that needs to be added at the app level?

      • Treczoks@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 day ago

        Well, using markdown on a phone is like hammering screws into a wall, so don’t complain when the pictures fall off the wall.

      • Steve@communick.news
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        2 days ago

        I’m not sure how it’s more or less trivial if you’re using a phone or desktop. In either case it’s extremely trivial.

      • Skullgrid@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        2 days ago

        But in an age of smartphones, I have to manually add double spaces at the end of every line for the end product to display as it appears when editing it.

        They can put a man on the moon, but they can’t make markdown work for my specific use case??

        Canned laughter

  • slazer2au@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    11
    ·
    3 days 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.

    • mic_check_one_two@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      2
      ·
      edit-2
      2 days 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.

      For instance, if I type out “qip” or “dib” notice that the tails for the q, p, d, and b are right next to the i? There’s not a whole lot of space on each side of the i, because the i is a very narrow character that doesn’t take up very much horizontal space. In monospaced font, that i would take up a lot more horizontal space on the line.

      Monospaced font is easier to read when sentences end with a double space. It helps visually identify that a sentence has ended, and that the space isn’t simply due to a few narrow characters. 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
        link
        fedilink
        arrow-up
        1
        ·
        20 hours 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.

    • Mike Wooskey@lemmy.thewooskeys.com
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      4
      ·
      3 days 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?

    • XeroxCool@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 days 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.

    • 9limmer@lemmy.zipOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      2 days 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 in between will be displayed as a single paragraph unless there are two spaces before the linefeeds.

      • Steve@communick.news
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Two linefeeds will separate two paragraphs.

        Two spaces are needed before a linefeed
        to keep them in one paragraph.
        Like this.

        • 9limmer@lemmy.zipOP
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Yeah, had a brain fart. I mean your second case. This seems trivial when typing short comments as you’ve done, but it’s incredible tedious when copying and pasting long lists and articles.