Deeper diving into the issue needed step-by-step investigation:
1) First I did a copy of node.js wiki into a temporary folder:
xcopy /s/i/q %TW_DIR%\*.* %TMP_DIR%
2) Then I did copying of images into separate folder near the single-file wiki:
tiddlywiki %TMP_DIR% --savetiddlers %IMG_FILTER% %HTML_IMAGES_DIR%
3) After that in the temporary copy of the wiki two fields
_canonical_uri and
text were impacted
tiddlywiki %TMP_DIR% --setfield %IMG_FILTER% _canonical_uri "$:/core/templates/canonical-uri-external-image" text/plain
tiddlywiki %TMP_DIR% --setfield %IMG_FILTER% text "" text/plain
4) The final step was in generation of a single-file HTML wiki from the temporary node.js wiki:
tiddlywiki %TMP_DIR% --rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline %HTML_INDEX_FILE% text/plain
After the 3rd step I noticed the content of one of the impacted images (in our case it is
$:/boa/img/protw-logo.svg)
$__boa_img_protw-logo.svg.meta
_canonical_uri: ./images/%2524%253A%252Fboa%252Fimg%252Fprotw-logo.svg
title: $:/boa/img/protw-logo.svg
type: image/svg+xml
$__boa_img_protw-logo.svg
The very this last value
undefined then has transferred into the HTML single-file wiki as
<pre>undefined</pre>.
Another command render shows the similar result.
It looks like some tiny changes happened in the command rendertiddler/render that from recent times generates unwanted content <pre>undefined</pre>. I purposely checked my old stuff generated much earlier - _canonical_uri tiddlers contain just <pre></pre>.
So, my conclusion:
- the issue is out of the scope of my competence,
- help of the TW developers' team is rather needed.
I'm grateful in advance.
Olegh
вівторок, 7 січня 2020 р. 18:02:38 UTC+2 користувач oleghbond написав: