1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibJS: Create JS to HTML markup generator

The new JS::MarkupGenerator class can convert both a JS source string
and a JS Runtime Value into properly formatted HTML using the new
LibWeb System Palette css color values.

It makes more sense for this JS -> HTML process to occur in LibJS
so that it can be used elsewhere, namely Markdown code block syntax
highlighting. It also means the Browser can worry less about LibJS
implementation details.
This commit is contained in:
FalseHonesty 2020-05-25 15:24:46 -04:00 committed by Andreas Kling
parent b352a6b59d
commit 941b028ca3
6 changed files with 392 additions and 160 deletions

View file

@ -73,6 +73,7 @@ class ScopeNode;
class Shape;
class Statement;
class Symbol;
class Token;
class Uint8ClampedArray;
class Value;
enum class DeclarationKind;