I’ve had good luck using AppleScript to export selected notes rather than the whole document.
See this for Markdown export (where you’re writing in the usual rich text but want to export to Markdown).
Export of selected notes to individual .html files can be as simple as this:
See short script here
-- Have an export folder ready. Select Tinderbox notes and run.
-- NB: overwrites any like-named files in that folder
set theFolder to (choose folder with prompt "Choose a folder to receive the exported files")
tell front document of application "Tinderbox 8"
repeat with aNote in selections
tell aNote
set theFilePath to theFolder & (value of attribute "Name") & ".html"
set theExportedString to evaluate with "exportedString(this,$HTMLExportTemplate)"
my writeTextToFile(theExportedString, theFilePath)
end tell
end repeat
end tell
on writeTextToFile(theText, theFilePath)
set theFilePath to theFilePath as string -- file path must be string
set theOpenedFile to open for access file theFilePath with write permission
set eof of theOpenedFile to 0 -- will overwrite like named existing file
write theText to theOpenedFile starting at eof as «class utf8»
close access theOpenedFile
end writeTextToFile
If instead of selecting the notes within the container you select the container itself and run the script, then (assuming your templates are set up) you should get one “consolidated” file.
So you can easily have it both ways, without having to toggle and so forth.