We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I ran into an issue when creating the index for lunr's search.
Chrome's console would show: Uncaught SyntaxError: Unexpected token ILLEGAL in lunr-index.js
It's because of the multi-line text within the content. In lunr-index.js, I can see it's replacing newlines with spaces:
body: "<%= section.markdown.replace(/\n/g, " ").replace(/"/g, '\\"') %>"
But that didn't work on Windows. I replaced it with:
body: "<%= section.markdown.replace(/(\r\n|\n|\r)/g, " ").replace(/"/g, '\\"') %>"
and that works for me.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I ran into an issue when creating the index for lunr's search.
Chrome's console would show:
Uncaught SyntaxError: Unexpected token ILLEGAL in lunr-index.js
It's because of the multi-line text within the content.
In lunr-index.js, I can see it's replacing newlines with spaces:
But that didn't work on Windows.
I replaced it with:
and that works for me.
The text was updated successfully, but these errors were encountered: