Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 472 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 472 Bytes

pandoc-ts-types

This package provides TypeScript definitions for Pandoc AST.

The definition currently complies with pandoc-types 1.23.

Installation

$ npm install --save-dev pandoc-types
$ yarn add -D pandoc-types

Usage

import { PandocJSON } from 'pandoc-types';

const content = await fs.readFile('ast.json', 'utf-8');
const json = JSON.parse(content) as PandocJSON;

License

MIT