My overwhelming impression, returning to TW, is that you need another reset. It’s technobabble is unfriendly to the point of rendering it unusable to a newbie. Looking for examples came up with the markdownguide.org site as an example of how it should be done, rather than the mess TW5 has.
I think you need four major documents, Intro, Structure, Grammar and CheatSheet. Get rid of the spin, cut to the chase.
Intro might take a shopping list as an example, developing it into all the basics. Structure should be a full top-down definition, Grammar, a full bottom-up definition. Have a clear demarkation, make html a boundary marker, predefined as “as defined in …” - others may be necessary.
Where does Structure start? I’d suggest at file level. Hyper-Structures could be Taxonomy level O.
Major taxonomy:
Top level 1. Imported 2. Core 3. User Coding and API
Structure 1.1 Importing tiddlers 1.2 Importing macros 1.3…
Structure 2.1 Display environment as a data structure
Structure 2.2 Full tiddler definition as a data structure, including additional fields etc,
Structure 2.3 All instances of TiddlyMarkup grouped by Lists, Tables, Formatting…
Structure 2.4 Built-in macros and other coding
Structure 3.1 Full Core System Code definition
Structure 3.2 User coding - overwrites
Structure 3.3 Imported coding - specification of documentation for offered extensions
Structure 3.4 User coding - new objects
Structure 3.5 Full API
Grammar and Cheatsheet. Essentially the same, with the Cheatsheet omitting the full definition, and possibly minor elements.
Grammar 1 Data structures
Grammar 2 Major classes of markup
Grammar 2.n Full definition of Subclasses, grouped
Grammar 3. Add-ons and extensions, a dynamic collection likewise grouped.
Annexes. Because Structure and Grammar are coming at the same onjects from opposite directions, it’s probably better to abstract them here. Treat each element as a full object definition, including creation, all inheritances, full structure and functions, including storage, and destruction. A list of referencing calls might also be useful. This may be Annexed, to allow referencing from several points.
Annexes 1. A simple grid of referencing from the above, with the taxonomies as each axis.