I had come to the conclusion that being able to have inline nodes with content would be sufficient to solve this (assuming that the inline node content had the same content spec expressiveness as text blocks). However I do have a question about how how you see inheritance of marks in the content specs working.
Consider:
{
nodes: {
paragraph: { content: 'inline<italic>' },
text: { group: 'inline' },
link: { content: 'text<strong>', group: 'inline' }
}
}
I’d expect the following:
- Does a
text
within aparagraph
allow theitalic
mark? — yes - Does a
text
within aparagraph
allow thestrong
mark? — no - Does a
link
within aparagraph
allow theitalic
mark? — no - Does a
link
within aparagraph
allow thestrong
mark? — yes
Is there a scenario where supporting different sets of marks without employing an inline node with content is a scenario worth supporting?
This sounds very reasonable to me.
I’ve been working under the principle that nesting ProseMirrors should be avoided in favour of a single ProseMirror. Can you point me to the background for why nested ProseMirrors is an approach that should be embraced?