Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Doesn't like double quotes in code highlighter #173

Closed
mike-jimbob-smith opened this issue Jul 7, 2021 · 1 comment
Closed

Doesn't like double quotes in code highlighter #173

mike-jimbob-smith opened this issue Jul 7, 2021 · 1 comment

Comments

@mike-jimbob-smith
Copy link

mike-jimbob-smith commented Jul 7, 2021

Search works perfectly until I add a post that has "" in the highlight block.

Changing them to single quotes restores functionality.

scripts.js:6 Uncaught Error: SimpleJekyllSearch --- failed to get JSON (/search.json) at o (scripts.js:6) at scripts.js:6 at XMLHttpRequest.<anonymous> (scripts.js:6)

Search is called like so, this is unedited from a third-party theme called joseph.

SimpleJekyllSearch({ searchInput: document.getElementById("js-search-input"), resultsContainer: document.getElementById("js-results-container"), json: "/search.json", searchResultTemplate: '{article}', noResultsText: '<h3 class="no-results">No results found</h3>' });

I am running it on Jekyll 4.2.0 with Simple-Jekyll-Search v1.6.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants