vssue icon indicating copy to clipboard operation
vssue copied to clipboard

[Feature Request] Comment preview

Open rufuspollock opened this issue 4 years ago • 2 comments

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

rufuspollock avatar Apr 29 '20 06:04 rufuspollock

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

meteorlxy avatar May 06 '20 02:05 meteorlxy

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

DynamicLoader avatar Apr 17 '21 06:04 DynamicLoader