[postprocessor:metadata] implement 'extension-format' option

closes #477
This commit is contained in:
Mike Fährmann
2019-11-29 23:12:22 +01:00
parent 0f1538af78
commit a412531451
3 changed files with 69 additions and 11 deletions

View File

@@ -1474,7 +1474,20 @@ metadata.extension
=========== =====
Type ``string``
Default ``"json"`` or ``"txt"``
Description Filename extension for metadata files.
Description Filename extension for metadata files that will be appended to the
original file names.
=========== =====
metadata.extension-format
-------------------------
=========== =====
Type ``string``
Example * ``"{extension}.json"``
* ``"json"``
Description Custom format string to build filename extensions for metadata
files with, which will replace the original filename extensions.
Note: `metadata.extension`_ is ignored if this option is set.
=========== =====
metadata.format
@@ -1482,7 +1495,7 @@ metadata.format
=========== =====
Type ``string``
Example ``"tags:\n\n{tags:J\n}\n"``
Description Custom format string to build content of metadata files.
Description Custom format string to build the content of metadata files with.
Note: Only applies for ``"mode": "custom"``.
=========== =====