solution / workaround using html and css:
Example from answer in html - Expand text in line - Stack Overflow
pasted into Obsidian (0.9.22) works in preview, collapsed by default.
Here are a few words on my thought about the movie <details><summary>Deadpool</summary> it was so well shot and a movie I just can't wait to see again.</details>
But it displays as multi-line. With CSS it can display inline until expansion:
start <details style="display: inline;"><summary>hint</summary>verification</details> end
This displays inline in Obsidian
hint
verification but not here on forum.
related:
This is potentially useful for implementation of:
keywords: answer, cloze deletion, collapse, flashcards, fold, hide, learning, question, recall, study, test