meteorlxy / vssue

:mailbox: A Vue-powered Issue-based Comment Plugin
https://vssue.js.org
MIT License
769 stars 105 forks source link

[Feature Request] Comment preview #92

Open rufuspollock opened 4 years ago

rufuspollock commented 4 years ago

What problem does the feature solve?

Previewing my comment before rendering. Job story: When creating my comment and using markdown I want to preview the result so that I have confidence it looks correct before submitting (esp as i don't know whether i can edit afterwards).

Both gittalk and gitment support previewing the comment. e.g. this is gitment

image

Proposed solution

Like gitment or gittalk. I can imagine one issue is that you support multiple backends and that may cause issues re previewing in that they may operate a bit differently. I have not yet looked deeply at the code so I don't have exact ideas how to implement or how gitment does it

image

meteorlxy commented 4 years ago

Some platforms provide api for rendering markdown content. We can enable this feature for those platforms, so we don't have to import markdown renderer ourselves.

This feature has already been proposed in #80 , which is marked as stale yesterday. So I'll keep this issue open until it is supported

DynamicLoader commented 3 years ago

Maybe we can use a javascript Marked.js to do it.In that case,we won't need to consider what backend is used.