mystmd: Improve compatibility with windows (e.g. can't init)

Describe the bug

context When I run myst init, I get an error message:

$ myst init
SyntaxError: Invalid regular expression: /c:\LocalTemp\Repos\Local\MystTest\/: \ at end of pattern

problem I realize this project is still in beta, but it looks awesome. I’m a big JupyterBook user and love this idea. Maybe my bug is specific to Windows?

Reproduce the bug

run myst init from Windows command line. Same error in Powershell and Git Bash as well. Also tried manually typing in the path.

List your environment

node 18.12.1 Windows 10

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (11 by maintainers)

Commits related to this issue

Most upvoted comments

We have tracked down that specific error – path replacement for nicer logging was using a regular expression, which isn’t a great idea in retrospect. That has been replaced! I am going to rename this issue to capture more compatibility issues with windows. We will do a bit more testing and then do a patch release early next week – hopefully you can try it out then!

Yes, myst start works great. I was asking about the html because my org has an internal doc site that only accepts static html or basic markdown. I personally use JupyterBook to generate my docs, but I love the live preview functionality offered by myst start. I can continue to use JupyterBook for the time being.

Sorry… didn’t mean to hit the close button… @stevejpurves , the myst build article.md --pdf error you saw is exactly what I was seeing.