mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 05:22:27 +03:00
graphcontent: blockquotes now correctly break paragraphs off
This commit is contained in:
parent
90b8776fad
commit
6e9c17a9c2
@ -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', {}]
|
||||
}
|
||||
};
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user