diff --git a/extensions.md b/extensions.md index a2b9e4c..6d62e82 100644 --- a/extensions.md +++ b/extensions.md @@ -210,10 +210,24 @@ This extension enables extra parsing for some special metadata keys. These are: - `tags`. Comma separated list of tags. - `emoji`. Emoji or emoji shortcode, checked that it's an actual emoji. -- `author`. Name, URL or both with the format `name `. +- `author`. Name, URL or [both](#Name-with-URL) with the format `name `. - `source`. Same as `author`. - `time`. Time string with unit support. Like `2 hour 30 min`. This overrides past `prep_time`/`cook_time`. - `prep_time`. Same format as `time`. Overrides past `time` but not `prep_time`. - `cook_time`. Same format as `time`. Overrides past `time` but not `cook_time`. _(`servings` is always parsed)_ + +### Name with URL + +Example: `Mom's Cookbook ` -> name: `Mom's Cookbook` url: `https://moms-cookbook.url/` + +The interpretations of the key value will be: + +- `name ` -> as `name` & `url` +- `name ` -> as `name` +- `name` -> as `name` +- `invalid url` -> as `name` +- `` -> as `name` +- `valid url` -> as `url` +- `` -> as `url` \ No newline at end of file