Commit Graph

9 Commits

Author SHA1 Message Date
101a15c8c9
Refactor link options into their own category 2020-11-06 16:01:51 +01:00
e95bcf53b4
Refactor link creation into parser style_func 2020-11-04 22:16:21 +01:00
2a3e213ac8
Move link extraction to link module
Both link creation and extraction, all derived from parser
functionality, should run within the link module and actions should only
make use of it to invoke editor functionality.
2020-11-04 22:04:31 +01:00
972845505f
Add new link functionality
`link.new` will create a correctly formatted to link for a zettel which
does *not exist* yet, by adding its own anchor.
2020-10-31 11:37:55 +01:00
9f1a7eb5ad
Fix link creation failing on empty text 2020-10-31 11:12:37 +01:00
320007e14b
Move anchor prepend function to anchor module 2020-10-31 11:05:30 +01:00
78a1948545
Add link formatting function
Function takes an anchor (and optional link text and formatting style)
and transforms the input into a link to an anchor id.

Currently works for markdown and wikilink style link transforms.
2020-10-30 18:44:50 +01:00
aa3e1eb754
Refactor link cleaning and transformation functions 2020-10-30 18:21:04 +01:00
cac9720d35
Refactor anchor and link functions into files 2020-10-30 16:30:37 +01:00