{"id":19039506,"url":"https://github.com/adrianapan/yamde","last_synced_at":"2025-08-02T04:33:08.473Z","repository":{"id":46748507,"uuid":"357293894","full_name":"AdrianApan/yamde","owner":"AdrianApan","description":"Yet another markdown editor.","archived":false,"fork":false,"pushed_at":"2022-09-10T09:53:19.000Z","size":118,"stargazers_count":25,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T15:42:28.607Z","etag":null,"topics":["dark","light","markdown","markdown-editor","react","react-component","reactjs","themes","typescript"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/modest-framework-6zmgb?file=/src/App.js","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/AdrianApan.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":"2021-04-12T18:11:58.000Z","updated_at":"2023-04-24T19:09:57.000Z","dependencies_parsed_at":"2022-08-12T13:01:08.738Z","dependency_job_id":null,"html_url":"https://github.com/AdrianApan/yamde","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/AdrianApan/yamde","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianApan%2Fyamde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianApan%2Fyamde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianApan%2Fyamde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianApan%2Fyamde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdrianApan","download_url":"https://codeload.github.com/AdrianApan/yamde/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianApan%2Fyamde/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334618,"owners_count":24233793,"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-08-02T02:00:12.353Z","response_time":74,"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":["dark","light","markdown","markdown-editor","react","react-component","reactjs","themes","typescript"],"created_at":"2024-11-08T22:17:14.253Z","updated_at":"2025-08-02T04:33:08.451Z","avatar_url":"https://github.com/AdrianApan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## YAMDE\n\n![yamde_logo_light](https://user-images.githubusercontent.com/69169115/114769765-86de3f00-9d62-11eb-9b28-c691f62f0e86.png)\n\nY.A.M.D.E - yet another markdown editor.\n\n**Demo:**\n\n[![View YAMDE demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/modest-framework-6zmgb?fontsize=14\u0026hidenavigation=1\u0026theme=dark)\n\n---\n\n### 🌱 Features\n\n- Responsive\n- Light/dark mode support\n- Customizable toolbar\n- Lightweight: [Bundlephobia](https://bundlephobia.com/result?p=yamde)\n\n---\n\n### 🔧 Installation\n\n`npm install yamde`\n\n---\n\n### 💻 Usage\n\nExample implementation:\n\n```jsx\nimport React, { useState } from 'react'\nimport Yamde from 'yamde'\n\nexport const App = () =\u003e {\n  const [text, setText] = useState('')\n\n  return \u003cYamde value={text} handler={setText} theme=\"light\" /\u003e\n}\n```\n\n---\n\n### ⚙️ Options\n\n#### 🎨 Themes\n\nThere are two available theme: `dark` and `light`.\nThis can be controlled via the `theme` prop (defaults to `light` if non specified).\n\n**Light**\n\n```jsx\n\u003cYamde value={text} handler={setText} theme=\"light\" /\u003e\n```\n\n![CleanShot 2021-04-15 at 00 26 39](https://user-images.githubusercontent.com/69169115/114793141-a6d12b00-9d81-11eb-9005-828d5ed6c931.gif)\n\n**Dark**\n\n```jsx\n\u003cYamde value={text} handler={setText} theme=\"dark\" /\u003e\n```\n\n![CleanShot 2021-04-15 at 00 28 50](https://user-images.githubusercontent.com/69169115/114793167-b5b7dd80-9d81-11eb-9ca9-c8c2a90e27c0.gif)\n\n#### ⌨️ Toolbar actions\n\nYou can customize the toolbar actions by passing in the `toolbar` prop (`toolbar?: string[]`).\nOmiting this prop will default to showing all available actions.\n\n```jsx\n\u003cYamde value={text} handler={setText} toolbar={['bold', 'italic', 'strikethrough']} /\u003e\n```\n\nAvailable actions:\n\n| Identifier      | Description            |\n| --------------- | ---------------------- |\n| `bold`          | **Bold** text.         |\n| `italic`        | _Italic_ text.         |\n| `strikethrough` | ~~Strikethrough~~ text |\n| `heading1`      | Heading 1 (H1)         |\n| `heading2`      | Heading 2 (H2)         |\n| `heading3`      | Heading 3 (H3)         |\n| `ulist`         | Unordered list         |\n| `olist`         | Ordered list           |\n| `table`         | Table markdown         |\n| `image`         | Image markdown         |\n| `quote`         | Blockquote markdown    |\n| `code`          | Code highlight         |\n| `hr`            | Horizontal rule        |\n\n#### `required` prop\n\nIf you use YAMDE in a form that uses HTML form validation, you can set the `required` prop to `true` (by default this is set to `false`):\n\n```jsx\n\u003cYamde value={text} handler={setText} required /\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianapan%2Fyamde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianapan%2Fyamde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianapan%2Fyamde/lists"}