Skip to content
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

New Install Causing � Between Markdown #1267

Closed
1 task done
LaurenceJJones opened this issue Feb 7, 2019 · 4 comments
Closed
1 task done

New Install Causing � Between Markdown #1267

LaurenceJJones opened this issue Feb 7, 2019 · 4 comments

Comments

@LaurenceJJones
Copy link

LaurenceJJones commented Feb 7, 2019

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

Bug report

Launching Vuepress Dev from newly install Vuepress cause <?> embedded between characters on README.md File.

Example:
echo '# Hello VuePress' > README.md

What is shown on webpage:
��#� �H�e�l�l�o� �V�u�e�P�r�e�s�s�

Version

Vuepress: cli.js/1.0.0-alpha.36 win32-x64 node-v9.11.1
Also tried 0.14.8
Yarn: 1.10.1

Steps to reproduce

Follow new install steps on website:

install globally

yarn global add vuepress

create a markdown file

echo '# Hello VuePress' > README.md

start writing

vuepress dev

What is expected?

No � characters between letters.

What is actually happening?

��#� �H�e�l�l�o� �V�u�e�P�r�e�s�s� Being rendered instead of markdown header.

Inside webpack JS script on build looks like this:

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{168:function(t,e,n){"use strict";n.r(e);var s=n(0),i=Object(s.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"content"},[e("p",[this._v("��#� �H�e�l�l�o� �V�u�e�P�r�e�s�s�")])])}],!1,null,null,null);e.default=i.exports}}]);

Exampel Render Below:
issue

Other relevant information

  • Your OS: Windows 10 x64
  • Node.js version: v9.11.1
  • Browser version: Firefox Nightly 63.0a1 (2018-09-03) (64-bit) and Chrome Version 71.0.3578.98 (Official Build) (64-bit)
  • Is this a global or local install? Global
  • Which package manager did you use for the install? Yarn

Issue Resolution

Don't create the markdown file from CMD or PowerShell as it causes this issue, on windows create the file externally using windows explorer or code editor.

@SimonEast
Copy link

Yes, I'm also getting the same issue on both Vuepress 1.0.0-alpha.36 and latest stable 0.14.8.

My Vuepress is also installed as a global via yarn as instructed in the docs.

@SimonEast
Copy link

I think it may have something to do with the Windows version of echo and the type of file it creates. I created a clean file inside Sublime text and it doesn't appear to show these issues, but haven't had time to test fully. Will try again later.

@LaurenceJJones
Copy link
Author

Hi @SimonEast you are correct the echo on windows is causing rouge character between the creation of the MD file. I have created it from using VS code create the file and it works as intended might need to update docs to suggest not echo for windows.

@ulivz ulivz added the duplicate label Feb 9, 2019
@ulivz
Copy link
Member

ulivz commented Feb 9, 2019

See: #276 (comment)

@ulivz ulivz closed this as completed Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants