undefinedfix
Sign in

How does react display markdown articles stored in the database

jcastrov edited in Wed, 17 Aug 2022

What I want to do is to find a markdown component and disable the editing function, that is, preview. What methods do big guys use to solve this problem

1 Replies
ePumps
commented on Thu, 18 Aug 2022

Simple preview is nothing more than compiling MD files into HTML fragments, which can be converted through marked;

Then we can do the rest of the styles as we want. If not, we can use GitHub's markdown style: GitHub markdown CSS

————————————————————————————————————————————- I remember when I first learned the front end, I also used the markdown editor as a starting point. I really miss it. Maybe I can refer to it. It's funny

lock This question has been locked and the reply function has been disabled.