I don't understand how the schema works #2186
Unanswered
SebastianStehle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a custom extension that works on links and shows them in a special way. The extension looks like this:
It works as expected when adding nodes and so on but not when loading text.
If I understand it properly prosemirror has a model that defines which elements can be added where, so for example a paragraph can have a text and image.
So I had a look to the heading-extension and copied the text from there and what I noticed:
<p><h1>Headline</h1></p>
<h1>Headline</h1>
<a href="MATCHING_URL">Text</a>
In markdown everything is part of a paragraph, because it is added when the markdown is converted to html.
Beta Was this translation helpful? Give feedback.
All reactions