Some kind of unwanted caching behaviour?
james-tindal opened this issue · 0 comments
james-tindal commented
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,
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.