ellmetha / django-machina

A Django forum engine for building powerful community driven websites.
https://django-machina.readthedocs.org
BSD 3-Clause "New" or "Revised" License
593 stars 126 forks source link

Client-side rendering of markdown preview #223

Closed BoPeng closed 3 years ago

BoPeng commented 3 years ago

If I am not mistaken, the preview button of django-machina sends markdown code to the backend for rendering then display it in the frontend. Can the preview be generated on the client side using something like marked.js? There can be different flavors of markdown so the frontend and backend rendering might differ a bit, but overall client side rendering would be faster for the users with less traffic to the server, right?

BoPeng commented 3 years ago

easyMDE has built in preview (that is disabled by mahina). I only need to re-introduce it.