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

Markdown files can break json #168

Closed
b3cking opened this issue Apr 11, 2021 · 3 comments
Closed

Markdown files can break json #168

b3cking opened this issue Apr 11, 2021 · 3 comments

Comments

@b3cking
Copy link

b3cking commented Apr 11, 2021

Hey, Chris!

If a md file (post) contains special chars (e.g. backslash in this particular case), the generated json breaks, which also breaks the whole searching function.

Example data in MD: "c:\windows\system32\drivers\etc\hosts"
In generated JSON: invalid escape char error.

screen

@christian-fei
Copy link
Owner

Hello!

Did you perhaps follow the instructions here? https://github.com/christian-fei/Simple-Jekyll-Search#if-search-isnt-working-due-to-invalid-json

This could solve your issue.

@b3cking
Copy link
Author

b3cking commented Apr 12, 2021

Thank you, somehow I missed that part. Have a nice day!

@b3cking b3cking closed this as completed Apr 12, 2021
@christian-fei
Copy link
Owner

No problem, you too @b3cking !

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