Skip to content

String/span JSX component not rendered correctly in TOC and sidenav #1440

@dbrrt

Description

@dbrrt

This might be considered an edge case but something useful when defining constants as components within a mdx project, to adjust globally updating a single file.

I've got this component defining a brand name

export const BrandName = () => {
    return <span>Authdog</span>
}

This pattern worked well with nextra, framework I'm migrating from to Zudoku.

Nextra:

import {BrandName} from "../../components/brandname.jsx";

# <BrandName /> Overview
Image Image

Importing the same way in Zudoku, the content is rendered correctly inside the page but not on sidenav and TOC

Image Image

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