Identical calls to matter should produce the same result #124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Identical, successive calls to
matterreturn different results.Example code:
I understand from this comment that it's caching based on the input string, and I can cache bust by passing in an empty options hash as a workaround.
In this case, I'm fine with it caching (even though it was unexpected and IMO should at least be documented). However, the cache should cache the resulting object exactly, so that identical calls to
matteralways return the same result.It's seems that the results are cached based on the content after frontmatter only, and not the whole content string. Which is even weirder. This means that when it first parses this:
it will return
{}, but when it then parses this:it returns cached
{}...