{"id":16091042,"url":"https://github.com/palerdot/slate-mark","last_synced_at":"2025-03-18T06:30:57.518Z","repository":{"id":57362919,"uuid":"396205731","full_name":"palerdot/slate-mark","owner":"palerdot","description":"Slate to Markdown convertor","archived":false,"fork":false,"pushed_at":"2021-10-31T10:13:55.000Z","size":281,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T07:49:39.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/palerdot.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-08-15T03:44:15.000Z","updated_at":"2024-11-16T01:26:10.000Z","dependencies_parsed_at":"2022-09-26T16:32:22.163Z","dependency_job_id":null,"html_url":"https://github.com/palerdot/slate-mark","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fslate-mark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fslate-mark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fslate-mark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palerdot%2Fslate-mark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palerdot","download_url":"https://codeload.github.com/palerdot/slate-mark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243908151,"owners_count":20367359,"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-10-09T15:08:31.246Z","updated_at":"2025-03-18T06:30:57.177Z","avatar_url":"https://github.com/palerdot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slate-mark\n\nSlate to Markdown parser. \n\nCompatible with [plate-editor](https://github.com/udecode/plate/) out of the box. \n\n## Usage\n\n```javascript\n// if using with typescript, import type from '@udecode/plate-core' or `@udecode/plate`\n// please make sure your input has similar strucutre to TNode\nimport type { TNode } from '@udecode/plate-core'\n// or \n// import type { TNode } from '@udecode/plate'\n\nimport { plateToMarkdown, plateToMarkdownAsync } from 'slate-mark'\n\n// input type is `TNode` (https://plate-api.udecode.io/modules.html#tnode)\nconst myInput: TNode = [\n    {\n    type: 'p',\n    children: [\n      {\n        text: 'Hello `universe !!!`',\n      },\n    ],\n  },\n  ...\n]\n\n// sync version\n// output will be a markdown string\nconst output = plateToMarkdown(myInput)\n\n// async/promise version\nplateToMarkdownAsync(myInput)\n    .then(result =\u003e {\n        // result will be a markdown string\n    })\n```\n\n*Please make sure you have either `@udecode/plate-core` or `@udecode/plate` as your dependency if you are using it with typescript. The input type for the parser utility functions is [TNode](https://plate-api.udecode.io/modules.html#tnode)*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalerdot%2Fslate-mark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalerdot%2Fslate-mark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalerdot%2Fslate-mark/lists"}