mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibMarkdown: Make href always a String
This already was the case in some sense, but made it very inconvenient to access it.
This commit is contained in:
parent
597379e864
commit
aca01932bd
2 changed files with 10 additions and 14 deletions
|
@ -88,9 +88,9 @@ public:
|
|||
public:
|
||||
bool is_image;
|
||||
NonnullOwnPtr<Node> text;
|
||||
NonnullOwnPtr<Node> href;
|
||||
String href;
|
||||
|
||||
LinkNode(bool is_image, NonnullOwnPtr<Node> text, NonnullOwnPtr<Node> href)
|
||||
LinkNode(bool is_image, NonnullOwnPtr<Node> text, String href)
|
||||
: is_image(is_image)
|
||||
, text(move(text))
|
||||
, href(move(href))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue