Would it be possible to use some kind of spoiler for the thinking part of a reasoning model (between <think> and </think>)?

Or if not directly hard coding such a feature because it might depend on the models, give the ability for the user to configure such a thing? Like allow to add a setting which tells "put any content between X and Y in a spoiler block", so I could configure one for X=<think> and Y=</think>, and then enable this setting for that specific model listed in the model settings, which I know to be a reasoning model.
Would it be possible to use some kind of spoiler for the thinking part of a reasoning model (between

<think>and</think>)?Or if not directly hard coding such a feature because it might depend on the models, give the ability for the user to configure such a thing? Like allow to add a setting which tells "put any content between X and Y in a spoiler block", so I could configure one for X=
<think>and Y=</think>, and then enable this setting for that specific model listed in the model settings, which I know to be a reasoning model.