Transforming links with Templater

What I’m trying to do

Hi everyone! I’m stuck trying to improve my paper reading workflow. Usually when I read something I leave notes while maintaining original structure of headings. I also leave tags under the headings so I can find all the little bits later. I have a number of topics and I can extract the tagged headings with AutoMOC plugin. However I would also like to have a reference on paper prepending these links and embed both of those links. I’ve seen that Templater can do some Regex magic and transform a selection of text into something else. Is it possible to write a template that takes a Wikilink:
[[some-link#some-header]]
and gives the output similar to this:
![[some-link#Reference]]
![[some-link#some-header]]

Things I have tried

I’ve tried searching for “templater regex” and “templater change link” but I’m bad at this so I couldn’t figure out how to write such a script

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.