Fix forced flanking anchor destination resolution

This commit is contained in:
Juno Takano 2025-12-26 01:17:27 -03:00
commit 6c026853e8
2 changed files with 17 additions and 1 deletions

View file

@ -240,3 +240,13 @@ fn parse(tokens: &[Token]) -> String {
pub(super) fn read(text: &str) -> String {
parse(&lex(text, LEXMAP))
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn force_flanking() {
assert_eq!(read("|Node||"), r#"<p><a href="/node/Node">Node</a></p>"#);
}
}