{"id":20486855,"url":"https://github.com/rricard/draft-md","last_synced_at":"2025-04-13T15:24:25.139Z","repository":{"id":57215989,"uuid":"60076609","full_name":"rricard/draft-md","owner":"rricard","description":"React/Draft.js-based Markdown editor inspired by iA Writer","archived":false,"fork":false,"pushed_at":"2016-05-31T13:11:32.000Z","size":450,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:46:45.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rricard.github.io/draft-md","language":"JavaScript","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/rricard.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}},"created_at":"2016-05-31T09:34:00.000Z","updated_at":"2019-08-02T15:46:39.000Z","dependencies_parsed_at":"2022-08-26T13:31:44.287Z","dependency_job_id":null,"html_url":"https://github.com/rricard/draft-md","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fdraft-md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fdraft-md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fdraft-md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rricard%2Fdraft-md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rricard","download_url":"https://codeload.github.com/rricard/draft-md/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248733602,"owners_count":21153043,"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":[],"created_at":"2024-11-15T16:38:55.289Z","updated_at":"2025-04-13T15:24:25.109Z","avatar_url":"https://github.com/rricard.png","language":"JavaScript","readme":"# DraftMD\n\nReact/Draft.js-based Markdown editor inspired by iA Writer\n\n## Installation\n\n    npm install draft-md\n\nor consume the bundled file in the `dist/` directory\n\n## Usage\n\n### Using React\n\nIf you use react already, it's very straightforward:\n\n    import {MDEditor} from \"draft-md\"\n    import React from \"react\"\n    import ReactDOM from \"react-dom\"\n    ReactDOM.render(\n      \u003cMDEditor initialValue=\"# Hello!\" onChange={console.log} /\u003e,\n      document.getElementById(\"editor\")\n    )\n\n### Without React - Global object in Bundle\n\n    DraftMD.mountMDEditor(\n      {initialValue: \"# Hello!\"},\n      document.getElementById(\"editor\")\n    )\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricard%2Fdraft-md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frricard%2Fdraft-md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frricard%2Fdraft-md/lists"}