You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for such a great tool! I was wondering if it would be possible to make the markdown links angle bracket escaped instead of url-encoding escaped ([some title](<../filepath with spaces/test.md#section>) vs [some title](<../filepath%20with%20spaces/test.md#section>)). This is supported by CommonMark/Obsidian and is much more readable on a quick glance IMO.
letmut link = utf8_percent_encode(&rel_link,PERCENTENCODE_CHARS).to_string();
ifletSome(section) = reference.section{
link.push('#');
link.push_str(&slugify(section));
}
let link_tag = pulldown_cmark::Tag::Link(
pulldown_cmark::LinkType::Inline,
CowStr::from(link),
CowStr::from(""),
);
vec![
Event::Start(link_tag.clone()),
Event::Text(CowStr::from(reference.display())),
Event::End(link_tag.clone()),
]
and think it would be two if statements on lines 689 and 698. One to block out the percent encoding and then another to prepend and append the angled brackets. I couldn't figure out how to add it as an option to the tool though so I would really appreciate it if it could be there. Thanks again for making this tool and if you are able to add this feature!
The text was updated successfully, but these errors were encountered:
Hi, thanks for such a great tool! I was wondering if it would be possible to make the markdown links angle bracket escaped instead of url-encoding escaped (
[some title](<../filepath with spaces/test.md#section>)
vs[some title](<../filepath%20with%20spaces/test.md#section>)
). This is supported by CommonMark/Obsidian and is much more readable on a quick glance IMO.I saw this piece of the code in
lib.rs
obsidian-export/src/lib.rs
Lines 688 to 706 in 8013026
and think it would be two if statements on lines 689 and 698. One to block out the percent encoding and then another to prepend and append the angled brackets. I couldn't figure out how to add it as an option to the tool though so I would really appreciate it if it could be there. Thanks again for making this tool and if you are able to add this feature!
The text was updated successfully, but these errors were encountered: