{"repo":"inokawa/remark-slate-transformer","free":true,"listed":false,"github":"https://github.com/inokawa/remark-slate-transformer","clone":"git clone https://github.com/inokawa/remark-slate-transformer.git","description":"remark plugin to transform remark syntax tree (mdast) to Slate document tree, and vice versa. Made for WYSIWYG markdown editor.","language":"TypeScript","stars":121,"topics":["slate","remark","remark-plugin","mdast","unified","markdown","wysiwyg","slatejs","react"],"license":"MIT","category":"productivity","readme_excerpt":"remark-slate-transformer remark plugin to transform remark syntax tree (mdast) to Slate document tree, and vice versa. Made for WYSIWYG markdown editor. remark is popular markdown parser/serializer which data structure can be converted to what used in rehype, retext and so on. Slate is fully customizable rich text editor built on React. Connect both 2 worlds should be great... [!NOTE] For Plate users, try https://github.com/inokawa/remark-slate-transformer/issues/31#issuecomment-2786317057 Support This plugin supports slate 0.50+. The data structure is described here. slate 0.47.9 was supported until 0.8.1. All nodes in mdast syntax tree are supported, including nodes created with... - remark-gfm - remark-frontmatter - math and inlineMath from remark-math. And also have experimental support for custom AST. Demo https://inokawa.github.io/remark-slate-transformer/ Install Supported unified versions remark-slate-transformer unified ------------------------ ---------------- =0.9.0 =11.0.0 =0.7.0 =10.1.0 =0.5.0 =10.0.0 <0.5.0 <10.0.0 Usage Transform remark to slate Transform slate to remark Support custom AST Utilities Transformer utilities mdastToSlate and slateToMdast are also exported for more fine-tuned control. Contribute All contributions are welcome. If you find a problem, feel free to create an issue or a PR. Making a Pull Request 1. Fork this repo. 2. Run npm install . 3. Commit your fix. 4. Add tests to cover the fix. 5. Make a PR and confirm all the CI checks passed. Re","default_branch":null,"files":null,"tree":[],"storefront":"/r/inokawa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/inokawa/remark-slate-transformer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}