Skip to content

unable to use assets or markdown files with space in name #573

@jinlianglou

Description

@jinlianglou

Describe the bug

当xxx.md中引用了图片,而图片的名字中含有空格则build失败
如图:
WX20220308-210322@2x

图片名字如下:
Screenshot 2021-07-05 at 12.53.29.png

在xxx.md中去掉相关以下内容 build 成功。
![Screenshot 2021-07-05 at 12.53.29.png](gettingstande.assets/Screenshot%202021-07-05%20at%2012.53.29.png)

Reproduction

yarn build:docs

Expected behavior

希望有空可以优化下。

System Info

System:
    OS: macOS 12.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
    Memory: 16.57 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.13.1 - /usr/local/bin/node
    Yarn: 1.5.1 - /usr/local/bin/yarn
    npm: 8.1.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 93.0.4577.82
    Edge: 99.0.1150.36

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to the build systemhas-workaroundHas workaround, low prioritystaleupstreamRelated to the dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions