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:
parent
b352a6b59d
commit
941b028ca3
6 changed files with 392 additions and 160 deletions
|
@ -73,6 +73,7 @@ class ScopeNode;
|
|||
class Shape;
|
||||
class Statement;
|
||||
class Symbol;
|
||||
class Token;
|
||||
class Uint8ClampedArray;
|
||||
class Value;
|
||||
enum class DeclarationKind;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue