Merge pull request 'feat: group images into a gallery' (#639) from fernandoporazzi/snort:group-post-images into main

Reviewed-on: #639
This commit is contained in:
2023-10-05 13:10:43 +00:00
3 changed files with 166 additions and 49 deletions

View File

@ -189,7 +189,7 @@ export function transformText(body: string, tags: Array<Array<string>>) {
fragments = fragments
.map(a => {
if (typeof a === "string") {
if (a.length > 0) {
if (a.trim().length > 0) {
return { type: "text", content: a } as ParsedFragment;
}
} else {