Skip to content

Always use forward slash for file paths when generating the website #628

@yamgent

Description

@yamgent

Tell us about your environment

  • MarkBind Version: 1.17.0

What did you do? Please include the actual source code causing the issue.

Repeat the steps on 2 different platforms (Windows vs Mac/Linux):

  1. markbind init
  2. markbind build
  3. Check the file paths inside the generated index.html.

What did you expect to happen?

The file paths generated should use a consistent slash (i.e. /), regardless of the OS that the author is running.

What actually happened? Please include the actual, raw output.

  • On Windows, the slash generated is \.
<script src="markbind\js\setup.js"></script>
<script src="markbind\layouts\default\scripts.js"></script>
</html>
  • On Mac & Linux, the slash generated is /.
<script src="markbind/js/setup.js"></script>
<script src="markbind/layouts/default/scripts.js"></script>
</html>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions