Skip to content
Snippets Groups Projects
Commit f1f7b713 authored by Bartłomiej Górnicki's avatar Bartłomiej Górnicki
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !4
parents 23cd4bdb 2dc25672
No related branches found
No related tags found
1 merge request!557Move hive renderer to internal packages
......@@ -2,6 +2,9 @@
[![npm](https://img.shields.io/npm/v/@hiveio/content-renderer.svg?style=flat-square)](https://www.npmjs.com/package/@hiveio/content-renderer) [![License](https://img.shields.io/github/license/wise-team/steem-content-renderer.svg?style=flat-square)](https://github.com/wise-team/steem-content-renderer/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
👉 **[Online demo](https://hive.pages.syncad.com/hive-renderer/)**
Portable library that renders Hive posts and comments to string. It supports markdown and html and mimics the behaviour of condenser frontend.
Features:
......@@ -46,7 +49,7 @@ const safeHtmlStr = renderer.render(postContent);
## Browser usage:
See [demo](./sample/live-demo.html).
See [demo](https://hive.pages.syncad.com/hive-renderer/) and [its source](https://gitlab.syncad.com/hive/hive-renderer/-/blob/master/sample/live-demo.html).
```html
......
......@@ -73,7 +73,6 @@ export class DefaultRenderer {
const renderer = new Remarkable({
html: true, // remarkable renders first then sanitize runs...
breaks: this.options.breaks,
linkify: false, // linkify is done locally
typographer: false, // https://github.com/jonschlinkert/remarkable/issues/142#issuecomment-221546793
quotes: "“”‘’",
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment