mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Lexical: Made summary part of details node
To provide more control of the summary as part of details. To support, added a way to ignore elements during import DOM, allowing up to read summaries when parsing details without duplicate nodes involved.
This commit is contained in:
@ -217,6 +217,11 @@ function $createNodesFromDOM(
|
||||
if (transformOutput !== null) {
|
||||
postTransform = transformOutput.after;
|
||||
const transformNodes = transformOutput.node;
|
||||
|
||||
if (transformNodes === 'ignore') {
|
||||
return lexicalNodes;
|
||||
}
|
||||
|
||||
currentLexicalNode = Array.isArray(transformNodes)
|
||||
? transformNodes[transformNodes.length - 1]
|
||||
: transformNodes;
|
||||
|
Reference in New Issue
Block a user