{"id":16527086,"url":"https://github.com/hiro08gh/rich-editor-to-markdown-parser","last_synced_at":"2025-10-18T20:26:40.433Z","repository":{"id":211370213,"uuid":"728583883","full_name":"hiro08gh/rich-editor-to-markdown-parser","owner":"hiro08gh","description":"microCMS Rich Editor response convert to markdown.","archived":false,"fork":false,"pushed_at":"2024-10-21T03:20:46.000Z","size":500,"stargazers_count":22,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-21T06:22:31.363Z","etag":null,"topics":["markdown","markdown-parser","microcms","parser"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rich-editor-to-markdown-parser","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/hiro08gh.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":"2023-12-07T08:56:11.000Z","updated_at":"2024-10-21T03:19:40.000Z","dependencies_parsed_at":"2024-10-21T06:24:35.672Z","dependency_job_id":null,"html_url":"https://github.com/hiro08gh/rich-editor-to-markdown-parser","commit_stats":null,"previous_names":["hiro08gh/rich-editor-to-markdown-parser"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiro08gh%2Frich-editor-to-markdown-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiro08gh%2Frich-editor-to-markdown-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiro08gh%2Frich-editor-to-markdown-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiro08gh%2Frich-editor-to-markdown-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiro08gh","download_url":"https://codeload.github.com/hiro08gh/rich-editor-to-markdown-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667243,"owners_count":16860578,"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":["markdown","markdown-parser","microcms","parser"],"created_at":"2024-10-11T17:32:45.738Z","updated_at":"2025-10-18T20:26:40.303Z","avatar_url":"https://github.com/hiro08gh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rich-editor-to-markdown-parser\n\nConvert microCMS Rich Editor response to Markdown.\n\n\u003cimg width=\"1326\" alt=\"rich-editor-to-markdown-parser image\" src=\"https://github.com/hiro08gh/rich-editor-to-markdown-parser/assets/39504660/68c9397f-1c80-45fa-97be-ca3fdc1e46ef\"\u003e\n\n## Installation\n\n```\nnpm install rich-editor-to-markdown-parser\n```\n\n## Usage\n\n```js\nimport { parser } from \"rich-editor-to-markdown-parser\";\n\nconst html =\n  '\u003ch1\u003eHello World!\u003c/h1\u003e\u003cp\u003eThis \u003cstrong\u003ehtml\u003c/strong\u003e string is \u003cs\u003econvert\u003c/s\u003einto \u003ca href=\"https://exampe.com\"\u003emarkdown.\u003c/a\u003e\u003c/p\u003e';\n\nparser(html); // # Hello World!\\n\\nThis **html** string is ~~convert~~ into [markdown.](https://exampe.com)\n```\n\n※ Unsupported HTML tags are parsed as strings. When converting markdown to HTML, consider sanitizing it using [DOMPurify](https://github.com/cure53/DOMPurify) or [sanitize-html](https://github.com/apostrophecms/sanitize-html).\n\n## HTML list\n\n| HTML            | Description           |\n| --------------- | --------------------- |\n| Heading         |                       |\n| Bold            |                       |\n| Italic          |                       |\n| Underline       | Parsed with HTML tags |\n| Strike          |                       |\n| Code            |                       |\n| TextAlign       | Not supported         |\n| Horizontal Rule |                       |\n| Blockquote      |                       |\n| CodeBlock       |                       |\n| Table           |                       |\n| ListBullet      |                       |\n| ListOrdered     |                       |\n| Link            |                       |\n| Image           |                       |\n| Embed           | Not supported         |\n| Custom class    | Parsed with HTML tags |\n\n## Options\n\n| Option           | Description                                            | Defualt |\n| ---------------- | ------------------------------------------------------ | ------- |\n| image.size       | Contain width and height image size. ex) ?w=1200\u0026h=630 | true    |\n| image.query      | Add image query in markdown. ex) ?format=webp          | ''      |\n| markStyle.strong | \\*\\* or \\_\\_                                           | \\*\\*    |\n| markStyle.em     | \\* or \\_                                               | \\*      |\n| markStyle.li     | - or \\* or +                                           | -       |\n| markStyle.hr     | --- or \\*\\*\\* or \\_\\_\\_                                | ---     |\n| markStyle.pre    | ``` or ~~~                                             | ```     |\n\n## Development\n\nFirst, install npm dependencies.\n\n```bash\nnpm install\n```\n\nRunning unit test. This library uses vitest.\n\n```bash\nnpm run test\n```\n\nBuild modules.\n\n```bash\nnpm run build\n```\n\n## License\n\nMIT License.© [hiro08gh](https://github.com/hiro08gh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiro08gh%2Frich-editor-to-markdown-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiro08gh%2Frich-editor-to-markdown-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiro08gh%2Frich-editor-to-markdown-parser/lists"}