tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
28
pulls
pipelines
handle publishing blockquotes
awarm.space
7 months ago
742931ac
07259114
+11
1 changed file
expand all
collapse all
unified
split
actions
publishToPublication.ts
+11
actions/publishToPublication.ts
···
18
18
PubLeafletBlocksMath,
19
19
PubLeafletBlocksHorizontalRule,
20
20
PubLeafletBlocksBskyPost,
21
21
+
PubLeafletBlocksBlockquote,
21
22
} from "lexicons/api";
22
23
import { Block } from "components/Blocks/Block";
23
24
import { TID } from "@atproto/common";
···
255
256
let block: $Typed<PubLeafletBlocksHeader.Main> = {
256
257
$type: "pub.leaflet.blocks.header",
257
258
level: headingLevel?.data.value || 1,
259
259
+
plaintext: stringValue,
260
260
+
facets,
261
261
+
};
262
262
+
return block;
263
263
+
}
264
264
+
265
265
+
if (b.type === "blockquote") {
266
266
+
let [stringValue, facets] = getBlockContent(b.value);
267
267
+
let block: $Typed<PubLeafletBlocksBlockquote.Main> = {
268
268
+
$type: ids.PubLeafletBlocksBlockquote,
258
269
plaintext: stringValue,
259
270
facets,
260
271
};