isso-comments / isso

a Disqus alternative
https://isso-comments.de
MIT License
5.06k stars 438 forks source link

Preview comments #398

Closed TobiGr closed 6 years ago

TobiGr commented 6 years ago

Hello everybody,

first of all, thanks for that great project. It is really useful.

We have a blog running with isso comments and many users would like to preview their comments before sending them. Is there any build in function for this or do I have to write the preview functions myself?

blatinier commented 6 years ago

No built-in for this I'm afraid. But feel free to contribute! We are a bit slow on merging PR but still grateful to include users contributions.

TobiGr commented 6 years ago

My idea is to use showdown.js. I'll take a look at it, but I can't promise a PR.

blatinier commented 6 years ago

Just if you happen to create a PR, the philosophy of the project is to rely as much as possible on the fewest dependencies. Keeping that in mind, the idea is to include new deps as optionnal and the feature activated via config and/or package presence.

vincentbernat commented 6 years ago

The rendering from showdown.js may be different from the one from Hoedown. Maybe an additional endpoint could render the preview.

vincentbernat commented 6 years ago

I just noticed there is a /preview endpoint that could be used for this...

vincentbernat commented 6 years ago

See #416.

blatinier commented 6 years ago

I merged @vincentbernat PR adding a preview to the system.