81416
|
1 |
/* Title: Pure/GUI/rich_text.scala
|
|
2 |
Author: Makarius
|
|
3 |
|
|
4 |
Support for rendering of rich text, based on individual messages (XML.Elem).
|
|
5 |
*/
|
|
6 |
|
|
7 |
package isabelle
|
|
8 |
|
|
9 |
|
|
10 |
object Rich_Text {
|
|
11 |
def command(
|
|
12 |
body: XML.Body = Nil,
|
|
13 |
id: Document_ID.Command = Document_ID.none,
|
|
14 |
results: Command.Results = Command.Results.empty
|
|
15 |
): Command = {
|
|
16 |
val source = XML.content(body)
|
|
17 |
val markups = Command.Markups.init(Markup_Tree.from_XML(body))
|
|
18 |
Command.unparsed(source, id = id, results = results, markups = markups)
|
|
19 |
}
|
|
20 |
}
|