Skip to content

if figure title is chinese, web page will print error. #2073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
xiaoyusu opened this issue Dec 9, 2019 · 4 comments
Open
1 task

if figure title is chinese, web page will print error. #2073

xiaoyusu opened this issue Dec 9, 2019 · 4 comments
Labels
type: bug Something isn't working

Comments

@xiaoyusu
Copy link

xiaoyusu commented Dec 9, 2019

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

What is expected?

When i use vuepress to release a web page with markdown docs, if the title of the figure is in chinese, the web page will print errror. And the figure will not display .

What is actually happening?

support chinese figure name and its figure path.

Other relevant information

  • Output of npx vuepress info in my VuePress project:
@haoranpb
Copy link
Contributor

haoranpb commented Dec 9, 2019

Hi @xiaoyusu

I'm sorry I not sure what do you mean. Are you saying that something like the code snippet below is giving your error?

![测试](/测试.png)

It works fine for me on VuePress 1.2.0 and Windows 10.

Can you provide more detail about how to reproduce the problem, your development environment, and the error message?

I suggest you double check the document about Asset Handling and update VuePress to the latest version.

@xiaoyusu
Copy link
Author

xiaoyusu commented Dec 9, 2019

The version of vuepress i use is 1.2.0
But envirment is Windows 7
If there are any methods to support as below?

![](/测试.png)  
![](./src/测试.png)

Now i can only insert picture with english name like:

![](/test.png)
![](./src/test.png)

@haoranpb
Copy link
Contributor

haoranpb commented Dec 9, 2019

Thanks a lot, I just successfully reproduce this.

Walkaround:

  • Rename the file to English
  • Put all of your static assets in the Public Files, and reference them by [test](/测试.png) instead of [test](./测试.png)

@billyyyyy3320 billyyyyy3320 added the type: bug Something isn't working label Jan 8, 2020
@haoranpb
Copy link
Contributor

haoranpb commented Mar 5, 2020

May be duplicate #1604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants