Crates.io | yarner-fold-code |
lib.rs | yarner-fold-code |
version | 0.2.2 |
source | src |
created_at | 2021-03-04 23:56:59.704914 |
updated_at | 2021-03-09 22:28:35.74102 |
description | A Yarner plugin that puts all code blocks into collapsed ` ` tags |
homepage | https://github.com/mlange-42/yarner-fold-code/ |
repository | https://github.com/mlange-42/yarner-fold-code/ |
max_upload_size | |
id | 363978 |
size | 13,487 |
A Yarner plugin that puts all code blocks into collapsed <details>
tags.
Example:
All code blocks are collapsed in details tags. Main code block
|
Binaries
PATH
environmental variableUsing cargo
> cargo install yarner-fold-code
Add a section plugin.fold-code
to your Yarner.toml
:
[plugin.fold-code]
The plugin allows for different options, which are all optional:
[plugin.fold-code]
min-lines = "10"
languages = ["java", "rust"]
ignore-languages = ["c", "python"]
Option | Details | Default |
---|---|---|
min-lines |
Do not fold code blocks shorter than that | 0 |
languages |
Only fold code blocks in these languages (if present) | none |
ignore-languages |
Do not fold code blocks in these languages | none |