Skip to content

Chinese mdx file name conversion problem #385

@majiayu000

Description

@majiayu000

I'm usingContentlayer. My mdx file name contains chinexe

Such like python with 函数链.mdx

after generate I got

import blog__python__pythonWithMdx from './blog__python__python with 函数链.mdx.json' assert { type: 'json' }

in _index.mjs

When I create two file named like python with 函数链.mdx and python with 函数.mdx error comes

import blog__python__pythonWithMdx from './blog__python__python with 函数链.mdx.json' assert { type: 'json' }
import blog__python__pythonWithMdx from './blog__python__python with 函数.mdx.json' assert { type: 'json' }

I check source code find question maybe in

dataVariableName: getDataVariableName({ docDef }),

But I am new to ts, dont konw how to do

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions