scroll icon indicating copy to clipboard operation
scroll copied to clipboard

add quick wiki inline links?

Open breck7 opened this issue 2 years ago • 4 comments

In aftertext should we have an inline link ability like Mediawiki's Take some more [[tea]] that compiles to Take some more <a href="tea">tea</a>

Might be worth it for wiki use cases etc.

breck7 avatar Jan 18 '23 14:01 breck7

Sounds good. But should also include the option to add a "_blank" attribute that compiles to " target='_blank' " if the developer wants to guide the reader to the link in a new tab. Currently all links for me open in the same tab if not for hitting the middle mouse button.

fractalqualia avatar Jan 19 '23 06:01 fractalqualia

Good idea @fractalqualia . I just added ability to set target on links.

breck7 avatar Jan 19 '23 13:01 breck7

I need to clean up the aftertext code a little bit but then this will be really simple:

https://try.scroll.pub/#scroll%0A%20*%20Using%20Scroll%20to%20power%20%25wikis%25%20will%20be%20easy.%20This%20would%20be%20a%20link%20to%20the%20%25about%25%20page.%0A%20%20wrap%20%25%20a%20href%3D%22foo%22%0A%20comment%20The%20%22wrap%22%20line%20above%20will%20not%20appear

breck7 avatar Jan 21 '23 02:01 breck7

Here's what Obsidian offers: https://help.obsidian.md/Linking+notes+and+files/Internal+links

I created a small branch to play with this further: https://github.com/breck7/scroll/tree/WikiLinks

breck7 avatar Apr 08 '23 23:04 breck7

I haven't fell the need for this too much. Going to close for now.

breck7 avatar May 22 '24 15:05 breck7