booklit icon indicating copy to clipboard operation
booklit copied to clipboard

allow \link with URL set later?

Open vito opened this issue 4 years ago • 0 comments

Inline URLs tend to make the content flow awkwardly and force dramatic word wrapping. It'd be cool if I could write like this:

Foo \link{Bar}, fizz buzz baz.

...

Check out \link{Bar}!

\set-link{Bar}{https://example.com}

Additional thoughts:

  • at the risk of being too fancy, it'd be nice to be able to write just [foo] like with Markdown.

  • another way to do this could be through partials:

    \set-partial{Bar}{\link{Bar}{https://example.com}}
    
    Foo \partial{Bar}, fizz buzz baz.
    

    ... but that feels a bit too much like programming and not enough like 'writing what you mean'. (also \partial isn't a thing.)

vito avatar Jan 03 '21 17:01 vito