{"id":18037441,"url":"https://github.com/joaocnh/react-headless-markdown-editor","last_synced_at":"2026-05-11T05:41:48.038Z","repository":{"id":76103510,"uuid":"567007962","full_name":"JoaoCnh/react-headless-markdown-editor","owner":"JoaoCnh","description":"A React component for simple, customisable markdown editors.","archived":false,"fork":false,"pushed_at":"2022-11-19T19:05:36.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-10T11:47:34.697Z","etag":null,"topics":["component","headless","markdown","markdown-editor","markdown-editor-react","react"],"latest_commit_sha":null,"homepage":"https://joaocnh.github.io/react-headless-markdown-editor/","language":"TypeScript","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/JoaoCnh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2022-11-16T21:53:19.000Z","updated_at":"2024-08-05T12:03:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc1011cd-036c-452e-af52-f85824fb0d00","html_url":"https://github.com/JoaoCnh/react-headless-markdown-editor","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"71864ffa05051a7d8346fb143d7cf0dcebfa5103"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaoCnh%2Freact-headless-markdown-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaoCnh%2Freact-headless-markdown-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaoCnh%2Freact-headless-markdown-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoaoCnh%2Freact-headless-markdown-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoaoCnh","download_url":"https://codeload.github.com/JoaoCnh/react-headless-markdown-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247267584,"owners_count":20911005,"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":["component","headless","markdown","markdown-editor","markdown-editor-react","react"],"created_at":"2024-10-30T13:09:00.298Z","updated_at":"2026-05-11T05:41:47.995Z","avatar_url":"https://github.com/JoaoCnh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-headless-markdown-editor\n\n## 👋 Intro\n\nA React component for simple, customizable markdown editors.\n\nThis library lets you:\n\n- Customize your editor however you see fit (it's Headless 🙈)\n- Create custom controls\n- Have a simple editor up \u0026 running in a few seconds\n\n## 🚀 How to use\n\n### Install\n\n```bash\nnpm install -S react-headless-markdown-editor\n# or\nyarn add react-headless-markdown-editor\n# or\npnpm i react-headless-markdown-editor\n```\n\n### Usage\n\nWith no styling options\n\n```js\nimport { Editor } from \"react-headless-markdown-editor\";\n\n\u003cEditor id=\"body\" name=\"body\" rows={25}\u003e\n  \u003cEditor.H1Control /\u003e\n  \u003cEditor.H2Control /\u003e\n  \u003cEditor.H3Control /\u003e\n\u003c/Editor\u003e;\n```\n\nBut it's easy enough to add something.\n\nI've made it work beautifully with normal css classes or tailwind.\n\n```js\nimport { Editor } from \"react-headless-markdown-editor\";\n\n\u003cEditor\n  id=\"body\"\n  name=\"body\"\n  rows={25}\n  // css class for the textarea\n  className=\"textarea-class\"\n  // css class for the container\n  containerClassName=\"container-class\"\n  // css class for the controls container\n  controlsClassName=\"controls-class\"\n\u003e\n  \u003cEditor.H1Control className=\"control-class\" /\u003e\n  \u003cEditor.H2Control className=\"control-class\" /\u003e\n  \u003cEditor.H3Control className=\"control-class\" /\u003e\n\u003c/Editor\u003e;\n```\n\nCheck out the [Demo](https://joaocnh.github.io/react-headless-markdown-editor/) for an example of styling\n\n[Source Code](https://github.com/JoaoCnh/react-headless-markdown-editor/blob/main/src/App.tsx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaocnh%2Freact-headless-markdown-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaocnh%2Freact-headless-markdown-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaocnh%2Freact-headless-markdown-editor/lists"}