sigle / slate-to-markdown

This package converts a Sigle story Slate 0.47 JSON representation to a Markdown document.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@sigle/slate-to-markdown

This package converts a Sigle story Slate 0.47 JSON representation to a Markdown document. Before storing plain markdown, Sigle used to store stories in a JSON format.

Usage

import { convert } from '@sigle/slate-to-markdown';

const slateJSON = [
  // ... Slate Sigle nodes JSON
];

const markdown = convert(slateJSON);

About

This package converts a Sigle story Slate 0.47 JSON representation to a Markdown document.

License:MIT License


Languages

Language:TypeScript 99.5%Language:JavaScript 0.3%Language:Shell 0.1%