Expand api for plugins

This commit is contained in:
alonso.torres 2024-05-06 17:32:14 +02:00
parent 6e409cbd47
commit 236ff06763
4 changed files with 210 additions and 29 deletions

View file

@ -406,8 +406,12 @@
[shape text]
(let [content (:content shape)
paragraph-style (select-keys (->> content (node-seq is-paragraph-node?) first) text-all-attrs)
text-style (select-keys (->> content (node-seq is-text-node?) first) text-all-attrs)
paragraph-style (merge
default-text-attrs
(select-keys (->> content (node-seq is-paragraph-node?) first) text-all-attrs))
text-style (merge
default-text-attrs
(select-keys (->> content (node-seq is-text-node?) first) text-all-attrs))
paragraph-texts (str/split text "\n")