graphcontent: blockquotes now correctly break paragraphs off

This commit is contained in:
Hunter Miller 2022-06-27 10:29:05 -05:00
parent 90b8776fad
commit 6e9c17a9c2
2 changed files with 2 additions and 16 deletions

View File

@ -7,6 +7,7 @@ module.exports = {
// Because we use styled system, and use
// the convention of each prop on a new line
// we probably shouldn't keep this on
'max-lines-per-function': ['off', {}]
'max-lines-per-function': ['off', {}],
'max-lines': ['off', {}]
}
};

View File

@ -316,21 +316,6 @@ function stitchAsts(asts: [StitchMode, GraphAstNode][]) {
);
t[1].children.map((c, idx) => {
if (
c.type === 'blockquote' &&
t[1].children[idx + 1] !== undefined &&
t[1].children[idx + 1].type === 'paragraph'
) {
const next =
idx !== t[1].children.length - 1
? t[1].children.splice(idx + 1, 1)
: [];
if (next.length > 0) {
t[1].children[idx].children.push(next[0]);
}
}
const links = [];
function addRichEmbedURL(nodes) {
if (nodes?.children) {