unibit
unibit copied to clipboard
[Fix] parseMarkdown startDelimiter
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---
.
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
- A trick can be to add some
- 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) ! :)