Commit Graph

14 Commits

Author SHA1 Message Date
Nick Groenen
58eb79e53d
new: postprocessing support
Add support for postprocessing of Markdown prior to writing converted
notes to disk.

Postprocessors may be used when making use of Obsidian export as a Rust
library to do the following:

1. Modify a note's `Context`, for example to change the destination
   filename or update its Frontmatter.
2. Change a note's contents by altering `MarkdownEvents`.
3. Prevent later postprocessors from running or cause a note to be
   skipped entirely.

Future releases of Obsidian export may come with built-in postprocessors
for users of the command-line tool to use, if general use-cases can be
identified.

For example, a future release might include functionality to make notes
more suitable for the Hugo static site generator. This functionality
would be implemented as a postprocessor that could be enabled through
command-line flags.
2021-04-11 13:52:40 +02:00
Nick Groenen
5f615e8ee0
Update lockfile 2021-02-15 21:42:35 +01:00
Nick Groenen
b54d4b46e7
Release v0.6.0 2021-02-15 21:38:17 +01:00
dependabot[bot]
1158c36e7c
Bump tempfile from 3.1.0 to 3.2.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases)
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS)
- [Commits](https://github.com/Stebalien/tempfile/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-18 06:46:11 +00:00
Nick Groenen
7360661fa3
Merge pull request #5 from zoni/dependabot/cargo/eyre-0.6.5
Bump eyre from 0.6.3 to 0.6.5
2021-01-16 11:47:04 +01:00
dependabot[bot]
751dcc39f0
Bump eyre from 0.6.3 to 0.6.5
Bumps [eyre](https://github.com/yaahc/eyre) from 0.6.3 to 0.6.5.
- [Release notes](https://github.com/yaahc/eyre/releases)
- [Changelog](https://github.com/yaahc/eyre/blob/v0.6.5/CHANGELOG.md)
- [Commits](https://github.com/yaahc/eyre/compare/v0.6.3...v0.6.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11 06:36:23 +00:00
dependabot[bot]
c67d4fde2c
Bump regex from 1.4.2 to 1.4.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.4.2...1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-11 06:36:21 +00:00
Nick Groenen
63186b4370
Release v0.5.1 2021-01-10 19:55:54 +01:00
Nick Groenen
d330af3989
Release v0.5.0 2021-01-05 15:47:35 +01:00
Nick Groenen
6033407266
new: support links referencing headings
Previously, links referencing a heading (`[[note#heading]]`) would just
link to the file name without including an anchor in the link target.
Now, such references will include an appropriate `#anchor` attribute.

Note that neither the original Markdown specification, nor the more
recent CommonMark standard, specify how anchors should be constructed
for a given heading.

There are also some differences between the various Markdown rendering
implementations.

Obsidian-export uses the [slug] crate to generate anchors which should
be compatible with most implementations, however your mileage may vary.

(For example, GitHub may leave a trailing `-` on anchors when headings
end with a smiley. The slug library, and thus obsidian-export, will
avoid such dangling dashes).

[slug]: https://crates.io/crates/slug
2021-01-04 21:45:00 +01:00
Nick Groenen
e3201e58be
Release v0.4.0 2020-12-23 00:31:07 +01:00
Nick Groenen
e9d5e69e24
Update Cargo.toml version number 2020-12-21 15:24:47 +01:00
Nick Groenen
8a28d627e4
Re-export vault_contents and WalkOptions as pub from crate root 2020-12-11 14:52:59 +01:00
Nick Groenen
c2de776148
Public release 2020-12-07 22:35:57 +01:00