obsidian-export/src
Nick Groenen d25c6d80c6 Chg: Pass context and events as mutable references to postprocessors
Instead of passing clones of context and the markdown tree to
postprocessors, pass them a mutable reference which may be modified
in-place.

This is a breaking change to the postprocessor implementation, changing
both the input arguments as well as the return value:

```diff
-    dyn Fn(Context, MarkdownEvents) -> (Context, MarkdownEvents, PostprocessorResult) + Send + Sync;
+    dyn Fn(&mut Context, &mut MarkdownEvents) -> PostprocessorResult + Send + Sync;
```

With this change the postprocessor API becomes a little more ergonomic
to use however, especially making the intent around return statements more clear.
2022-01-16 11:53:15 +01:00
..
context.rs Fix 4 new clippy lints 2021-07-27 15:00:44 +02:00
frontmatter.rs new: postprocessing support 2021-04-11 13:52:40 +02:00
lib.rs Chg: Pass context and events as mutable references to postprocessors 2022-01-16 11:53:15 +01:00
main.rs New: support Obsidian's "Strict line breaks" setting 2022-01-02 00:42:51 +01:00
postprocessors.rs Chg: Pass context and events as mutable references to postprocessors 2022-01-16 11:53:15 +01:00
references.rs Don't borrow references that are immediately dereferenced 2021-08-27 11:27:46 +02:00
walker.rs Chg: Don't Box FilterFn in WalkOptions 2021-02-12 13:37:00 +01:00