parse_wikilinks

Function parse_wikilinks 

Source
pub fn parse_wikilinks(content: &str) -> Vec<Link>
Expand description

Parse wikilinks from content.

Returns links with empty source_file. Use Parser::parse_file() for vault-aware parsing.

ยงExample

use turbovault_parser::parse_wikilinks;

let links = parse_wikilinks("See [[Note]] and [[Other|alias]]");
assert_eq!(links.len(), 2);
assert_eq!(links[0].target, "Note");