Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
denser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
denser
Commits
f1f7b713
Commit
f1f7b713
authored
2 years ago
by
Bartłomiej Górnicki
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!4
parents
23cd4bdb
2dc25672
No related branches found
Branches containing commit
No related tags found
1 merge request
!557
Move hive renderer to internal packages
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
src/renderers/default/DefaultRenderer.ts
+0
-1
0 additions, 1 deletion
src/renderers/default/DefaultRenderer.ts
with
4 additions
and
2 deletions
README.md
+
4
−
1
View file @
f1f7b713
...
...
@@ -2,6 +2,9 @@
[

](https://www.npmjs.com/package/@hiveio/content-renderer)
[

](https://github.com/wise-team/steem-content-renderer/blob/master/LICENSE)
[

](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
...
...
This diff is collapsed.
Click to expand it.
src/renderers/default/DefaultRenderer.ts
+
0
−
1
View file @
f1f7b713
...
...
@@ -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
:
"
“”‘’
"
,
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment