Skip to content

Example from documentation crashes with TypeError #132

@tolmasky

Description

@tolmasky

This example currently breaks with

TypeError: Expected Array or iterable object of values: [object Object]

RunKit Link showing full stack trace

const { State } = require('markup-it');
const markdown = require('markup-it/lib/markdown');

const state = State.create(markdown);
const document = state.deserializeToDocument('Hello **World**');

I've tried with [email protected] and [email protected], and @gitbook/[email protected] and @gitbook/[email protected].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions