Skip to content

Chinese mdx file name conversion problem #385

Closed as not planned
Closed as not planned

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

Activity

  1. nkilm commented on Feb 25, 2023

    @nkilm
    Contributor

    @majiayu000 Related to #375 and #337

  2. schickling commented on Feb 26, 2023

    @schickling
    Collaborator

    Thanks @nkilm. Closing as duplicate.

  3. added
    duplicate
    on Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions