A Yarner plugin that adds to each code block a list of links to all referenced and all referencing blocks.
Example:
Binaries
PATH
environmental variableUsing cargo
```
cargo install yarner-block-links ```
Add a section plugin.block-links
to your Yarner.toml
:
toml
[plugin.block-links]
The plugin provides optional configuration for link formatting. Defaults are as follows (but all options can be left out):
toml
[plugin.block-links]
template = "{{#if usage}}> Usage: {{usage}} \n{{/if}}{{#if macros}}> Macros: {{macros}}{{/if}}"
join = " "
label = "`{{label}}`"
| Option | Details |
|------------|-------------------------------------------------|
| template
| Template for formatting of the links section(s) |
| join
| Separator between links |
| label
| Formatting of link labels |