You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this doesn't work, since the Parser is carrying a reference to the local snippet variable.
Basically i'd like a way to opt out of the zero-copy implementation for cases like this. I think this could be achieved if the Parser accepted an impl Into<CowStr<'input>> instead of &'input str.
My current workaround is to manually construct the snippet like so-
I'm using this library in an MdBook extension (mdbook-d2)
It's working a treat, but there's one rough edge. I'd like to return some
Events
from a function, something like the following-this doesn't work, since the
Parser
is carrying a reference to the localsnippet
variable.Basically i'd like a way to opt out of the zero-copy implementation for cases like this. I think this could be achieved if the
Parser
accepted animpl Into<CowStr<'input>>
instead of&'input str
.My current workaround is to manually construct the snippet like so-
from mdbook-d2
or am I perhaps taking the wrong approach entirely in this preprocessor?
The text was updated successfully, but these errors were encountered: