markdown-contract 0.4.1

Contracts for markdown documents: declare the frontmatter, headings, tables and lists a document must have, and get findings with line numbers. The Rust twin of @osdlc/markdown-contract.
Documentation
1
2
3
4
5
6
7
8
9
10
//! The Obsidian syntax the engine always recognizes. Barrel only.
//!
//! - [`anchors`]: line-terminal `^block-id` tokens.
//! - [`wikilinks`]: `[[wikilink]]` and `![[transclusion]]` recognition over flattened text.

pub(crate) mod anchors;
pub(crate) mod wikilinks;

pub(crate) use anchors::{extract_trailing_anchor, is_standalone_anchor};
pub use wikilinks::{VaultRef, VaultRefKind, extract_vault_refs};