steem-content-renderer
Portable library that renders steem posts and comments to string. It supports markdown and html and mimics the behaviour of condenser frontend.
Features:
-
supports markdown and html
-
sanitizes html and protects from XSS
Credit: this library is based on the code from condenser. It's aim is to allow other projects display steem content the right way without porting the same code over and over.
Server side usage
Installation:
$ npm install --save steem-content-renderer
Typescript:
; ; ;
Browser usage:
See demo and its source.