Path to this page:
Subject: CVS commit: pkgsrc/editors/tp-note
From: pin
Date: 2023-09-22 20:53:54
Message id: 20230922185354.66B8CFBDB@cvs.NetBSD.org
Log Message:
editors/tp-note: update to 1.22.0
Support also nested YAML types (map, array) in document header
Before this release, all header variables were limited to flat string types.
This release overcomes this limitation: all templates and the document viewer
can now deal with all YAML types, e.g. String, Number, Bool, including the
nested ones: Array, Object. For example, the following is now valid:
```yaml
title: My Article
author:
first: John Doe
second: Martin Foo
date:
- 2023-04-13
- 2023-04-22
```
Further improvements:
* The templates only emits double quotes, were required be YAML standards.
* Configurable type checks occur before applying filename templates (see
`tmpl.filter_assert_preconditions` in `tpnote-lib/src/config_default.toml`).
* Stronger (configurable) type checks for `title:`, `subtitle:`,
`lang:`, `sort_tag:` and `file_ext:` header variables with user prompts
* The configuration defaults are now written and documented in TOML format:
* `tpnote/src/config_default.toml`
* `tpnote-lib/src/config_default.toml`
Files: