simplify the raw json parsing

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>

Fixed Tests

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-09-16 10:20:24 +03:00
parent 4053229544
commit 01e98a6ce8
8 changed files with 104 additions and 164 deletions

View File

@@ -7,12 +7,15 @@
"italic": true,
"extra": [
{
"extra": "Component!",
"extra": [
"Component!"
],
"bold": false,
"italic": false
}
]
}
],
"expected_output": "<font color=\"red\"><b><i>Hello, </i></b></font><font color=\"red\">Component!</font>"
"expected_output":
"<span style=\"color: red; font-weight: bold; font-style: italic;\">Hello, <span style=\"font-weight: normal; font-style: normal;\">Component!</span></span>"
}