Hi,
I want to use the HTML tag <details>
with its associated <summary>
tag to add a generic toggle function to pages.
<details>
<summary>Episode V Spoiler</summary>
Vader: "Obi Wan never told you what happened to your father."
Luke: "He told me enough! He told me you killed him!"
…
</details>
Preliminary question: Is there a shortcut to allow specific HTML tags? I haven't seen anything like that (yet).
The main problem at this point is if I can restrict the <summary>
tag to be only parsed within a <details>
tag, preferably as it's first child. My current idea is to use two syntax components _details
and _summary
and have the summary mode only enter from the details mode. But this seems impossible using the required connectTo()
method since it will loop through all modes of the specified mode types, right? Is there a way to register a single origin mode but still be able to have all other modes within both <details>
and <summary>
?
Thanks for your help! 😀