GitMarkonics icon indicating copy to clipboard operation
GitMarkonics copied to clipboard

marked instead of draft-js

Open Rishabhraghwendra18 opened this issue 3 years ago • 3 comments

I am thinking of removing our dependency on draft-js by marked

Reasons:

  • Marked is light weight & fast than draft-js
  • low-level compiler for parsing markdown without caching or blocking for long periods of time
  • Easy to use.
  • Can modify it as per our needs. This is complex in draft-js.
  • Have more downloads than draft-js.
  • Used by Atom text editor for it's markdown preview.

We can easily integrate it with Reactjs.

Resources

  • used by Atom text editor (see in package.json) : https://github.com/atom/markdown-preview
  • marked : https://www.npmjs.com/package/marked

Rishabhraghwendra18 avatar Jun 15 '21 11:06 Rishabhraghwendra18