Skip to content
Discussion options

You must be logged in to vote

To answer your first question, you could use this technique:

return open == null ? html`<div>${body}</div>` : html`<details>${body}</details>`;

On your defaultSignatureParser question, I don’t see why that wouldn’t work as-is in any vanilla JavaScript environment. It seems to work fine in Notebooks 2.0. Perhaps the error is somewhere else.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aaronkyle
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mootari
Comment options

mootari Sep 14, 2025
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants