diff --git a/README.md b/README.md
index 0ebb221..a77d32b 100644
--- a/README.md
+++ b/README.md
@@ -74,9 +74,6 @@ The RichText library will create gui text nodes representing the markup in the t
bold = hash("Roboto-Bold"),
bold_italic = hash("Roboto-BoldItalic"),
},
- VeraMo = {
- regular = hash("VeraMo"),
- },
Nanum = {
regular = hash("Nanum-Regular"),
},
@@ -85,8 +82,16 @@ The RichText library will create gui text nodes representing the markup in the t
position = vmath.vector3(0, 0, 0),
parent = gui.get_node("parent"),
}
- self.nodes = richtext.create("Lorem ipsum dolor sit amet.", "Roboto", settings)
+ local text = "RichTextLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt mattis libero non viverra. Nullam ornare accumsan rhoncus. Nunc placerat nibh a purus auctor, id scelerisque massa rutrum."
+
+ self.nodes = richtext.create(text, "Roboto", settings)
+
+This would result in the following output:
+
+![](docs/example.png)
+
+## API
### richtext.create(text, settings)
Creates rich text gui nodes from a text containing markup.
diff --git a/docs/example.png b/docs/example.png
new file mode 100644
index 0000000..04a3ded
Binary files /dev/null and b/docs/example.png differ
diff --git a/example/example.gui_script b/example/example.gui_script
index 41c55cf..7e3a5ef 100644
--- a/example/example.gui_script
+++ b/example/example.gui_script
@@ -1,6 +1,6 @@
local richtext = require "richtext.richtext"
-local TEXT = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt mattis libero non viverra. Nullam ornare accumsan rhoncus. Nunc placerat nibh a purus auctor, id scelerisque massa rutrum. Phasellus dui nulla, finibus eu neque sit amet, interdum suscipit mauris. Phasellus mattis sem sed leo pretium, eu eleifend quam bibendum."
+local TEXT = "RichTextLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tincidunt mattis libero non viverra. Nullam ornare accumsan rhoncus. Nunc placerat nibh a purus auctor, id scelerisque massa rutrum."
function init(self)
local settings = {
@@ -11,9 +11,6 @@ function init(self)
bold = hash("Roboto-Bold"),
bold_italic = hash("Roboto-BoldItalic"),
},
- VeraMo = {
- regular = hash("VeraMo"),
- },
Nanum = {
regular = hash("Nanum-Regular"),
},