{"id":19070297,"url":"https://github.com/inhouse-work/protos-markdown","last_synced_at":"2025-12-26T09:57:47.999Z","repository":{"id":236779316,"uuid":"793135286","full_name":"inhouse-work/protos-markdown","owner":"inhouse-work","description":"Protos component for rendering markdown with Phlex","archived":false,"fork":false,"pushed_at":"2025-03-02T08:48:35.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T13:56:11.251Z","etag":null,"topics":["phlex","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://protos.inhouse.work","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/inhouse-work.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-28T14:27:19.000Z","updated_at":"2025-03-02T08:45:03.000Z","dependencies_parsed_at":"2024-08-17T07:34:26.649Z","dependency_job_id":null,"html_url":"https://github.com/inhouse-work/protos-markdown","commit_stats":null,"previous_names":["inhouse-work/protos-markdown"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inhouse-work%2Fprotos-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inhouse-work%2Fprotos-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inhouse-work%2Fprotos-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inhouse-work%2Fprotos-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inhouse-work","download_url":"https://codeload.github.com/inhouse-work/protos-markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249428485,"owners_count":21270467,"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","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":["phlex","ruby","ruby-on-rails"],"created_at":"2024-11-09T01:17:58.421Z","updated_at":"2025-12-26T09:57:47.992Z","avatar_url":"https://github.com/inhouse-work.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Protos Markdown\n\nMarkdown component built with [Protos](https://github.com/inhouse-work/protos).\n\nThis is a fork of [phlex-markdown](https://github.com/phlex-ruby/phlex-markdown).\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add protos-markdown\n\nIf bundler is not being used to manage dependencies, install the gem by\nexecuting:\n\n    $ gem install protos-markdown\n\n## Usage\n\nThis library lets you define your own component and override elements, including\nusing the standard protos conventions:\n\n```ruby\nclass Markdown \u003c Protos::Markdown\n  def h1(**) = super(class: css[:title], **)\n  def ul(**) = super(class: \"ml-4 pt-2\", **)\n\n  private\n\n  def theme\n    {\n      title: \"font-bold text-xl\"\n    }\n  end\nend\n```\n\nRendering the component outputs our custom css:\n\n```ruby\ncontent = \u003c\u003c~MD\n  # Hello World\n\n  - A\n  - B\n  - C\nMD\n\noutput = Markdown.new(content).call\n```\n\nWhich outputs the following html:\n\n```html\n\u003ch1 class=\"font-bold text-xl\" id=\"hello-world\"\u003eHello World\u003c/h1\u003e\n\u003cul class=\"ml-4 pt-2\"\u003e\n  \u003cli\u003eA\u003c/li\u003e\n  \u003cli\u003eB\u003c/li\u003e\n  \u003cli\u003eC\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and the created tag, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/inhouse-work/protos-markdown.\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finhouse-work%2Fprotos-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finhouse-work%2Fprotos-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finhouse-work%2Fprotos-markdown/lists"}