obsidian-export/Cargo.toml

49 lines
1.1 KiB
TOML
Raw Normal View History

2020-11-28 15:14:50 +03:00
[package]
name = "obsidian-export"
2022-11-19 19:09:43 +03:00
version = "22.11.0"
2020-11-28 15:14:50 +03:00
authors = ["Nick Groenen <nick@groenen.me>"]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/zoni/obsidian-export"
documentation = "https://docs.rs/obsidian-export"
description = """
Rust library and associated CLI program to export an Obsidian vault to regular Markdown.
"""
categories = ["command-line-utilities", "text-processing"]
keywords = ["markdown", "obsidian"]
[lib]
name = "obsidian_export"
path = "src/lib.rs"
[[bin]]
name = "obsidian-export"
path = "src/main.rs"
doc = false
2020-11-28 15:14:50 +03:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2022-11-05 16:20:24 +03:00
eyre = "0.6.8"
gumdrop = "0.8.1"
ignore = "0.4.18"
2020-11-28 15:14:50 +03:00
lazy_static = "1.4.0"
matter = "0.1.0-alpha4"
pathdiff = "0.2.1"
percent-encoding = "2.3.0"
2022-11-05 16:20:24 +03:00
pulldown-cmark = "0.9.2"
pulldown-cmark-to-cmark = "11.0.0"
rayon = "1.6.0"
2023-09-22 12:32:44 +03:00
regex = "1.9.4"
serde_yaml = "0.9.25"
slug = "0.1.4"
2023-09-22 12:43:30 +03:00
snafu = "0.7.5"
New: apply unicode normalization while resolving notes The unicode standard allows for certain (visually) identical characters to be represented in different ways. For example the character ä may be represented as a single combined codepoint "Latin Small Letter A with Diaeresis" (U+00E4) or by the combination of "Latin Small Letter A" (U+0061) followed by "Combining Diaeresis" (U+0308). When encoded with UTF-8, these are represented as respectively the two bytes 0xC3 0xA4, and the three bytes 0x61 0xCC 0x88. A user linking to notes with these characters in their titles would expect these two variants to link to the same file, given they are visually identical and have the exact same semantic meaning. The unicode standard defines a method to deconstruct and normalize these forms, so that a byte comparison on the normalized forms of these variants ends up comparing the same thing. This is called Unicode Normalization, defined in Unicode® Standard Annex #15 (http://www.unicode.org/reports/tr15/). The W3C Working Group has written an excellent explanation of the problems regarding string matching, and how unicode normalization helps with this process: https://www.w3.org/TR/charmod-norm/#unicodeNormalization With this change, obsidian-export will perform unicode normalization (specifically the C (or NFC) normalization form) on all note titles while looking up link references, ensuring visually identical links are treated as being similar, even if they were encoded as different variants. A special thanks to Hans Raaf (@oderwat) for reporting and helping track down this issue. --- Closes #126
2022-11-19 18:34:17 +03:00
unicode-normalization = "0.1.22"
2020-11-28 15:14:50 +03:00
[dev-dependencies]
pretty_assertions = "1.4.0"
rstest = "0.17.0"
tempfile = "3.8.0"
walkdir = "2.3.2"