enkidevs / enkidevs/remark-stringify

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

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The following pipeline would fail without explicitly setting `toMarkdownExtensions`:

```javascript
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.