summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/play.js b/play.js
index 2b08a6d..0c878e1 100644
--- a/play.js
+++ b/play.js
@@ -422,6 +422,12 @@ function on_update() { // eslint-disable-line no-unused-vars
function on_log(text) { // eslint-disable-line no-unused-vars
let p = document.createElement("div")
+
+ if (text.match(/^>/)) {
+ text = text.substring(1)
+ p.className = "i"
+ }
+
if (text.match(/^\.h1/)) {
text = text.substring(4)
p.className = 'h1'