Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Preview Post #443

Open
createthis opened this issue Jun 21, 2013 · 11 comments
Open

Feature Request: Preview Post #443

createthis opened this issue Jun 21, 2013 · 11 comments

Comments

@createthis
Copy link

This is expected functionality with forums. People like to preview their post before committing their written words to the wild. Opening this as a starting point for consideration/discussion.

@daniely
Copy link

daniely commented Jul 18, 2013

what's the best way to do this? like how github does it with a "write" tab and "preview" tab?

@knewter
Copy link
Contributor

knewter commented Jul 18, 2013

With http://github.com/isotope11/wacky I do side by side realtime updates, but this strikes me as Not Very Non Techie Friendly. Still thought I'd bring it up.

@daniely
Copy link

daniely commented Jul 18, 2013

that's a neat idea. just curious, how do you deal with malformed content? like when adding blockquotes and the end tag isn't there yet?

@knewter
Copy link
Contributor

knewter commented Jul 18, 2013

Poorly :)

@daniely
Copy link

daniely commented Jul 18, 2013

lol. well, stackoverflow does realtime preview but stacked vertically. so not a bad idea.

i do think github's write/preview tab is easy to understand for non-technies and would be much easier to implement though

@createthis
Copy link
Author

Seems like you could write a JSON web service to format your preview markdown, then shove the output into a DIV via jQuery.get(). Clicking "Preview" runs the callback.

@knewter
Copy link
Contributor

knewter commented Jul 18, 2013

The way I do it is to use a javascript markdown formatter, which is substantially faster and 'mostly-right'. That way you can do it in realtime and not by clicking preview.

Obviously, if a 'preview' tab is used then that's the way to go so it matches perfectly how the server will render. I opted for the quicker feedback, and it's extremely rare to find an edge case where the two disagree for my uses (but for instance, with emoji, etc. I would expect that gap to widen)

@daniely
Copy link

daniely commented Jul 19, 2013

I'm thinking Forem shouldn't limit the users to markdown. Some users might want forums to support bbcode for example or even straight html shudder. Thoughts?

@radar
Copy link
Collaborator

radar commented Jul 19, 2013

No.

Just no.

I don't want to be tasked with maintaining more than one way to do things. Markdown is the one true way.

On Fri, Jul 19, 2013 at 6:44 PM, daniely notifications@github.com wrote:

I'm thinking Forem shouldn't limit the users to markdown. Some users might want forums to support bbcode for example or even straight html shudder. Thoughts?

Reply to this email directly or view it on GitHub:
#443 (comment)

@daniely
Copy link

daniely commented Jul 19, 2013

That settles that :)

@createthis
Copy link
Author

For what it's worth, I agree with Radar. That's the right decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants