Sorry for not getting back to you sooner. I was out of town.
- Number 2 (all highlights twice) is fixed!

- Number 3 (Not replacing YAML variables) worked as before: Worked for smaller files (38,000 characters) but failed with longer files (238,687 characters).
- Number 4: (didn't limit file size) is fixed! It generated several files according to the limit set in the config options.

I experimented with different file limits to get more data for number 3 with a big file (238,687):
Maximums file size 30,000: 9 files, file 2 and 5 did not replace variables. But with another trial, only 1 and 9 replaced variables. Ye another trial: 1,3, 4 and 7 replaced variables. There appears to be no regularity.
Maximum file size 50,000: 5 files, several trials, always the second file does not replace the variables. There is regularity!
Maximum file size 80,000: 4 files, all files ok. Numerous trials.
Maximum file size 100,000: 3 files, only number 3 replaced variables in various trials. There is regularity.
I tested the option "Restricted length" but not to include headers in smaller notes. I noticed that all parts of the notes files are without a header. This surprised me: I thought that the first file should have the full header, all the following smaller files will not have a header.