We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b64c52 commit 986efbdCopy full SHA for 986efbd
1 file changed
Tutorial-o-Matic/src/main/groovy/ToM_ui.groovy
@@ -35,6 +35,10 @@ import org.freeplane.core.ui.components.UITools as ui
35
36
import io.github.gitbucket.markedj.Marked
37
import io.github.gitbucket.markedj.Options
38
+
39
+import org.jsoup.Jsoup
40
+import org.jsoup.nodes.Document
41
42
//end:
43
44
class ToM_ui{
@@ -155,6 +159,14 @@ class ToM_ui{
155
159
return html
156
160
}
157
161
162
+ def static mergeHtml(baseHtml, addedHtml){
163
+ if(!baseHtml) return addedHtml
164
+ if(!addedHtml) return baseHtml
165
+ Document doc = Jsoup.parse(baseHtml)
166
+ doc.body().append('<p/>').append(addedHtml)
167
+ return doc.html()
168
+ }
169
158
170
171
172
//region: creating panes
0 commit comments