Skip to content
New issue

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

Some kind of unwanted caching behaviour? #159

Open
james-tindal opened this issue May 2, 2023 · 0 comments
Open

Some kind of unwanted caching behaviour? #159

james-tindal opened this issue May 2, 2023 · 0 comments

Comments

@james-tindal
Copy link

james-tindal commented May 2, 2023

GrayMatter is giving me the output for a previous input instead of the actual input.
This Codesandbox behaves normally

import GrayMatter from "gray-matter";
console.log(
  GrayMatter(
    "---\nmarkmap:\n  coloring: single\n---\n\n```markmap\n---\nmarkmap:\n  height: 249\n---\n# Housework\n## Main\n- [x] Dishes\n- [ ] Cleaning the bathroom\n- [ ] Change the light bulbs\n- [ ] something else\n## [x] Also work on titles\n```\n\nd\n"
  ).data
);

Output: { markmap: { coloring: 'single' }

However, if I copy and paste the same code into my Electron console,
image

So far, I can't replicate this in a simpler form.

If I change one character in the input string, it returns a normal answer.

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

No branches or pull requests

1 participant