unibit icon indicating copy to clipboard operation
unibit copied to clipboard

[Fix] parseMarkdown startDelimiter

Open NicolasRoehm opened this issue 4 years ago • 1 comments

I was not able to build the pages on Windows 10 using unibit build or unibit develop. It always outputs [Unibit] Generating 0 pages... I removed the \n on each startDelimiter and it now works. Surprisingly, endDelimiter works fine as is, for example, \n---.

NicolasRoehm avatar Jan 27 '21 11:01 NicolasRoehm

I have found other issues related to Windows 10 :

  • In unibit.js -> getPages(), the split by '/' result is irrelevant because Windows provides '\\'
    • A trick can be to add some urlPath = urlPath.replace('\\', '/'); here and there
  • In browser routing with base/index pages does not work and sends 404, Windows users must add /index manually at the end of the URL

Because Unibit works great on Linux, I'll continue to use it in the right way. You can close this issue and/or ping me with guidelines to fix these issues properly.

Thank you for sharing this library, it's very useful and working well (on real OS) ! :)

NicolasRoehm avatar Jan 28 '21 09:01 NicolasRoehm