This commit is contained in:
Johan Förberg 2023-12-02 11:42:55 +01:00 committed by GitHub
commit 553e0dc287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -666,10 +666,15 @@ impl<'a> Exporter<'a> {
.unwrap_or_else(|| context.current_file().to_str().unwrap()),
context.current_file().display(),
);
let dummy_link_tag = pulldown_cmark::Tag::Link(
pulldown_cmark::LinkType::Inline,
CowStr::from(""),
CowStr::from(""),
);
return vec![
Event::Start(Tag::Emphasis),
Event::Start(dummy_link_tag.clone()),
Event::Text(CowStr::from(reference.display())),
Event::End(Tag::Emphasis),
Event::End(dummy_link_tag.clone()),
];
}
let target_file = target_file.unwrap();

View File

@ -1,3 +1,3 @@
Link to *other-note*.
Link to [other-note]().
Link to *another note*.
Link to [another note]().