src/Pure/GUI/rich_text.scala
changeset 81416 206dd586f3d7
child 81417 964b85e04f1f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Pure/GUI/rich_text.scala	Sun Nov 10 11:55:36 2024 +0100
@@ -0,0 +1,20 @@
+/*  Title:      Pure/GUI/rich_text.scala
+    Author:     Makarius
+
+Support for rendering of rich text, based on individual messages (XML.Elem).
+*/
+
+package isabelle
+
+
+object Rich_Text {
+  def command(
+    body: XML.Body = Nil,
+    id: Document_ID.Command = Document_ID.none,
+    results: Command.Results = Command.Results.empty
+  ): Command = {
+    val source = XML.content(body)
+    val markups = Command.Markups.init(Markup_Tree.from_XML(body))
+    Command.unparsed(source, id = id, results = results, markups = markups)
+  }
+}