Crates.io | yarner-block-links |
lib.rs | yarner-block-links |
version | 0.1.2 |
source | src |
created_at | 2021-03-04 23:53:09.483643 |
updated_at | 2021-03-09 22:28:35.389407 |
description | A Yarner plugin that adds to each code block a list of links to all referenced and all referencing blocks |
homepage | https://github.com/mlange-42/yarner-block-links/ |
repository | https://github.com/mlange-42/yarner-block-links/ |
max_upload_size | |
id | 363976 |
size | 20,935 |
A Yarner plugin that adds to each code block a list of links to all referenced and all referencing blocks.
Example:
A list of links is placed under each code block that references other blocks:
Blocks that are referenced by other blocks get a list of usages added. The first referenced block:
The second referenced block:
|
Binaries
PATH
environmental variableUsing cargo
> cargo install yarner-block-links
Add a section plugin.block-links
to your Yarner.toml
:
[plugin.block-links]
The plugin provides optional configuration for link formatting. Defaults are as follows (but all options can be left out):
[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 |