The "commentary" element is useful and is not changing. How you control its
visibility *is* changing, and it is...complicated. So if you use the
"commentary" element, please read carefully.
We envisioned this element as something you might use to provide annotations
inside a textbook, to help create an "Instructor's Version". So it is not
visible out-of-the-box and you make it visible with a string parameter (named
"commentary"). It now makes much more sense to create an "Instructors Version"
with our version support, which out-of-the-box includes all content.
So switching default behavior from invisible to visible seems impossible to do
gracefully. Sorry. Worse, we do not want authors and publishers to suddenly
get "instructor only" content in their output without lots of warnings.
Short version: put your "commentary" into a "component" (I named the one for the
sample article "instructor"). Then use a publisher file to include (or not)
this component. If you hide the component, it will go away early in the build
process. If you make the component visible, you *still need to set the string
parameter to "yes"*. No code is being removed now, or for another year.
Plan:
Now: you will get a warning about component-less "commentary". It'll go away
once you change your source.
2024-03-13, or later: string parameter will be *removed* and use will create a
warning (or a fatal error?). And, as protection, component-less "commentary"
will create a fatal error.
Sometime in the future: fatal errors will be softened, and perhaps evetually
removed.
Please post questions or concerns on pretext-support or pretext-dev as
appropriate. Sorry this one is so messy.
Rob
Section 28.2: Versions
https://pretextbook.org/doc/guide/html/publisher-versions.html