Marty Oehme
e4e6fca765
Fix unused variables and useless pending test
2021-04-30 13:28:00 +02:00
Marty Oehme
382b0bef72
Add anchor extraction to link string extraction
2020-11-06 16:52:57 +01:00
Marty Oehme
101a15c8c9
Refactor link options into their own category
2020-11-06 16:01:51 +01:00
Marty Oehme
e95bcf53b4
Refactor link creation into parser style_func
2020-11-04 22:16:21 +01:00
Marty Oehme
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
Marty Oehme
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
Marty Oehme
9f1a7eb5ad
Fix link creation failing on empty text
2020-10-31 11:12:37 +01:00
Marty Oehme
320007e14b
Move anchor prepend function to anchor module
2020-10-31 11:05:30 +01:00
Marty Oehme
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
Marty Oehme
aa3e1eb754
Refactor link cleaning and transformation functions
2020-10-30 18:21:04 +01:00
Marty Oehme
cac9720d35
Refactor anchor and link functions into files
2020-10-30 16:30:37 +01:00