• Parse Hexo markdown post (structured with yaml and universal markdown blocks)

    • return postMap metadata {string & object} and body
    • return null == failed

    Parameters

    • target: string

      file path or string markdown contents (used for cache key)

    • options: ParseOptions = {}

      options parser

      • ParseOptions.sourceFile used for cache key when target is file contents

    Returns Promise<postMap>