Skip to content

needed mdast-util-gfm-table to properly render tables #27

@iloveitaly

Description

@iloveitaly

The following pipeline would fail without explicitly setting toMarkdownExtensions:

  const markdownString = await unified()
    // NOTE
    .use(rehypeParse)
    .use(rehypeRemark)
    // NOTE without this, it would fail to render tables
    .data("toMarkdownExtensions", [gfmTableToMarkdown()])
    .use(remarkStringify)
    .process(transformedHtmlString)

In the docs, it seems to indicate that tables will be rendered just fine—what am I missing?

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