9 votes

Feature request: Message preview

I'd love to see a preview button, I hate posting without knowing exactly how my post is going to look... I obsess over such things.

13 comments

  1. Spankatron
    Link
    I say don't do that and change the name of the site to the "Wild Wild Westernet" Who knows what you're gonna get!

    I say don't do that and change the name of the site to the "Wild Wild Westernet"

    Who knows what you're gonna get!

    1 vote
  2. [10]
    Deimos
    Link
    Definitely possible, any particular way you think it works well? GitHub has it as kind of a "tab" that you can flip back and forth from the editor to the preview. Some other sites will pop up the...

    Definitely possible, any particular way you think it works well? GitHub has it as kind of a "tab" that you can flip back and forth from the editor to the preview. Some other sites will pop up the preview in a modal.

    1 vote
    1. [5]
      cfabbro
      Link Parent
      RES has a live preview underneath the comment/self-text box on reddit. I don't know if it's possible to do on ~ with your security policies and whatnot... but that would be my suggestion if you...

      RES has a live preview underneath the comment/self-text box on reddit. I don't know if it's possible to do on ~ with your security policies and whatnot... but that would be my suggestion if you can do it that way. A tab works too though and actually probably makes more sense from a UI/UX perspective especially for long comments and self-text.

      2 votes
      1. [4]
        Deimos
        Link Parent
        Live preview is possible, but the bad part of it is that it means you have to also maintain a client-side, javascript version of your markdown parser that behaves the same as the server-side one....

        Live preview is possible, but the bad part of it is that it means you have to also maintain a client-side, javascript version of your markdown parser that behaves the same as the server-side one. That's not really something that I want to do, so I probably won't do a live preview.

        With an on-request preview (by changing tabs or clicking a button or something), you can just send it to the same server-side parser and display the result.

        3 votes
        1. ReAn
          Link Parent
          Could you have a live preview that has an indeterminate loading animation with the text: Stop typing to see a preview (eg: Example ) And after you stop typing for 1-2 seconds post their content to...

          Could you have a live preview that has an indeterminate loading animation with the text: Stop typing to see a preview (eg: Example )

          And after you stop typing for 1-2 seconds post their content to the server to render your preview. This would keep the load on the servers down while maintaining one source of truth for markdown processing.

          2 votes
        2. cfabbro
          Link Parent
          If live preview is too much of a PITA I would be perfectly content with a tab preview, especially if that's easier for you to implement, more secure and with less performance overhead.

          If live preview is too much of a PITA I would be perfectly content with a tab preview, especially if that's easier for you to implement, more secure and with less performance overhead.

          1 vote
        3. Amarok
          Link Parent
          Keep it simple. If/when we/someone writes a RES-equivalent for tildes they can handle the live preview. Until then, a simple, classic 'preview' button is all we'd need - and it's what people are...

          Keep it simple. If/when we/someone writes a RES-equivalent for tildes they can handle the live preview. Until then, a simple, classic 'preview' button is all we'd need - and it's what people are used to, that's how almost all forums have always done it.

          I usually submit and then read/edit. :P

          1 vote
    2. StarGarbage
      Link Parent
      Perfectly happy with a tab, then it's available for those who want to see it, but not cluttering up the page for those who don't.

      Perfectly happy with a tab, then it's available for those who want to see it, but not cluttering up the page for those who don't.

      2 votes
    3. [3]
      huadpe
      Link Parent
      As mentioned, RES has a good model for it. While we're at it, can we also get a "view source" button like Reddit has? I've found it super helpful for copy/pasting from heavily formatted comments...

      As mentioned, RES has a good model for it.

      While we're at it, can we also get a "view source" button like Reddit has? I've found it super helpful for copy/pasting from heavily formatted comments or submissions. Not a high priority request by any means though, as it's just a "nice to have."

      2 votes
      1. [2]
        Deimos
        Link Parent
        That's another RES feature, not a native reddit one, but it's definitely possible. I feel like that should probably be "hidden" somehow though, it's such an unusual need that having a dedicated...

        That's another RES feature, not a native reddit one, but it's definitely possible. I feel like that should probably be "hidden" somehow though, it's such an unusual need that having a dedicated button for it visible all the time is probably unnecessary.

        2 votes
        1. huadpe
          Link Parent
          Ah, didn't even realize it was RES and not Reddit doing that. I agree it may not be as necessary for most people - I am a weird power user with unusual need to copy that sort of thing because I...

          Ah, didn't even realize it was RES and not Reddit doing that. I agree it may not be as necessary for most people - I am a weird power user with unusual need to copy that sort of thing because I end up writing long heavily formatted comments a lot.

          2 votes
  3. [2]
    kaushalmodi
    Link
    It seems to support plain old Markdown. So there's very little guesswork. This is my very first comment too in Tildes. About "knowing exactly how the post looks", can't it be edited? Update: Looks...

    I hate posting without knowing exactly how my post is going to look

    It seems to support plain old Markdown. So there's very little guesswork. This is my very first comment too in Tildes. About "knowing exactly how the post looks", can't it be edited?


    Update: Looks like you can edit too. Nice!


    Coming back to suggestion on previews, Discourse does it very elegantly IMO.

    1 vote
    1. cfabbro
      (edited )
      Link Parent
      IIRC we are using the GitHub Flavored Markdown (Commonmark) spec. And we also support some common html elements as well... e.g. <a href="https://test.com">test</a> = test

      IIRC we are using the GitHub Flavored Markdown (Commonmark) spec.

      And we also support some common html elements as well... e.g.

      <a href="https://test.com">test</a> = test