andreypopp / reactdown

Markdown based live document format
https://andreypopp.github.io/reactdown
MIT License
116 stars 10 forks source link

Expose document model #7

Closed andreypopp closed 8 years ago

andreypopp commented 8 years ago

We want to expose document model information on documents.

Example:

export let model = {
  toc: {
    title: '...',
    children: [
      {title: '...', children: [...]},
      ...
    ]
  }
}

The document model could be defined by a configurable set of analyzers.