Featured event card beside the hero text; Word import: tabs, quotes, callouts, dividers, videos, buttons
From lg up the featured event's photo sits beside its words, so the card is about as tall as the hero text. Word import turns a 'Tab:' line into a tab, the Quote and Intense Quote styles into quotes and callouts, '---' into a divider, a lone video link into a video and 'Button: label' into a button; Blog posts shows the whole mapping beside Import from Word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3b034eb00e
commit
56acedf926
8 changed files with 143 additions and 16 deletions
|
|
@ -74,6 +74,8 @@ export function importDocx(db, buffer, fileName, byEmail) {
|
|||
slot: "body",
|
||||
type: block.type,
|
||||
text: block.text ?? null,
|
||||
href: block.href ?? null,
|
||||
cite: block.cite ?? null,
|
||||
items: block.items ?? [],
|
||||
})),
|
||||
});
|
||||
|
|
@ -87,6 +89,9 @@ export function importDocx(db, buffer, fileName, byEmail) {
|
|||
paragraphs: count("paragraph"),
|
||||
lists: count("list"),
|
||||
tables: count("table"),
|
||||
tabs: count("tab"),
|
||||
// Quotes, callouts, dividers, videos and buttons.
|
||||
others: doc.blocks.filter((b) => ["quote", "callout", "divider", "video", "button"].includes(b.type)).length,
|
||||
skipped: doc.skipped,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue