Skip to content

Markdown table not rendered in html #345

@tikri

Description

@tikri

Provide environment information

"next": "^15.3.8",
"outstatic": "^2.0.14",
"react": "^19.1.0",

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

Happens locally, on vercel and also when checking out outstatic project locally.

Describe the Bug

If I add a markdown table, it is not rendered to html.


Possible fix
Locally I added remark-gfm apps/dev/src/lib/markdownToHtml.ts:

  const result = await remark()
    .use(remarkGfm) // added this
    .use(html)
    .process(markdown)

But I had to upgrade versions to get this working: remark -> 15.0.1; remark-html -> 16.0.1; remark-gfm -> 4.0.1-----

Expected Behavior

The table should render.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

--

To Reproduce

  • Checkout outstatic project
  • Add markdown table to apps/dev/outstatic/content/pages/home.md
  • Start dev server (npm run dev)
  • Open browser with http://localhost:3000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions