Sha256: 3510d82d2ec44467ebccce62572bc5d6eb80b39413a7f65f031080127e965005

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

// Minimum TypeScript Version: 3.0
import {
  Buffer,
  BufferEncoding,
  SyntaxExtension,
  Token
} from 'micromark/dist/shared-types'
import {Root} from 'mdast'
import {Type} from 'micromark/dist/constant/types'

export = fromMarkdown

declare namespace fromMarkdown {
  interface MdastExtension {
    enter: Record<Type, (token: Token) => void>
    exit: Record<Type, (token: Token) => void>
  }

  interface Options {
    extensions?: SyntaxExtension[]
    mdastExtensions?: MdastExtension[]
  }
}

declare function fromMarkdown(
  value: string | Buffer,
  options?: fromMarkdown.Options
): Root

declare function fromMarkdown(
  value: string | Buffer,
  encoding?: BufferEncoding,
  options?: fromMarkdown.Options
): Root

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/mdast-util-from-markdown/types/index.d.ts