{"id":13770889,"url":"https://github.com/ceritium/render_editorjs","last_synced_at":"2025-09-04T01:10:17.665Z","repository":{"id":42039820,"uuid":"425332359","full_name":"ceritium/render_editorjs","owner":"ceritium","description":"A modular and customizable Ruby renderer for https://editorjs.io","archived":false,"fork":false,"pushed_at":"2025-07-08T21:12:16.000Z","size":66,"stargazers_count":36,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T11:27:55.638Z","etag":null,"topics":["editorjs","renderer","wysiwyg"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceritium.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-06T19:37:43.000Z","updated_at":"2025-07-08T21:12:20.000Z","dependencies_parsed_at":"2024-01-06T20:45:42.164Z","dependency_job_id":"cd90edc2-73ce-4dd3-a6f1-19b4cf8c9024","html_url":"https://github.com/ceritium/render_editorjs","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"4e1e9a0e1060ac665813c3b1889819ffc6b2c31a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ceritium/render_editorjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Frender_editorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Frender_editorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Frender_editorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Frender_editorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceritium","download_url":"https://codeload.github.com/ceritium/render_editorjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceritium%2Frender_editorjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273535013,"owners_count":25122766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editorjs","renderer","wysiwyg"],"created_at":"2024-08-03T17:00:43.930Z","updated_at":"2025-09-04T01:10:17.655Z","avatar_url":"https://github.com/ceritium.png","language":"Ruby","funding_links":[],"categories":["Libraries","Ruby"],"sub_categories":["Ruby"],"readme":"# RenderEditorjs\n\nA modular and customizable Ruby renderer for [Editor.js](https://editorjs.io/).\n\nThis gem takes inspiration from [editor_js](https://github.com/xiaohui-zhangxh/editor_js).\nIt copies some code blocks logic and schema validations. The `editor_js` gem\nimplements the most common blocks. If you don't need any customization, it would make\nsense to try it.\n\nIn comparison, `RenderEditorjs` (this gem) only implement a few blocks, but you can\ncustomize and extend it with your blocks.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'render_editorjs'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install render_editorjs\n\n## Usage\n\n`RenderEditorjs` expects an Editor.js JSON as input; it can be a JSON serialized\nas a string or a Hash.\n\n### Basic usage\n\n```ruby\nRenderEditorjs.render(json) #=\u003e HTML...\n```\n\n### Common usage\n\n```ruby\nrenderer = RenderEditorjs::DefaultRenderer.new\ndocument = RenderEditorjs::Document.new(json, renderer)\n\ndocument.valid? #=\u003e true | false\ndocument.errors #=\u003e Array with the schema errors\ndocument.render #=\u003e HTML...\n```\n\n### Advanced usage\n\nCustomize the DefaultRenderer adding or overriding blocks:\n\n```ruby\nrenderer = RenderEditorjs::DefaultRenderer.new(\"header\" =\u003e MyCustomHeader.new, \"customBlock\" =\u003e CustomBlock.new)\ndocument = RenderEditorjs::Document.new(json, renderer)\ndocument.render #=\u003e My custom HTML\n```\n\nCreate your renderer class:\n\n```ruby\nrenderer = MyOwnRenderer.new\ndocument = RenderEditorjs::Document.new(json, renderer)\ndocument.render #=\u003e My custom HTML\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ceritium/render_editorjs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ceritium/render_editorjs/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the RenderEditorjs project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ceritium/render_editorjs/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceritium%2Frender_editorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceritium%2Frender_editorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceritium%2Frender_editorjs/lists"}