summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/Text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibMarkdown/Text.cpp')
-rw-r--r--Libraries/LibMarkdown/Text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibMarkdown/Text.cpp b/Libraries/LibMarkdown/Text.cpp
index ddb0ea2d81..9361e05d60 100644
--- a/Libraries/LibMarkdown/Text.cpp
+++ b/Libraries/LibMarkdown/Text.cpp
@@ -69,7 +69,7 @@ String Text::render_to_html() const
{ "b", &Style::strong },
{ "code", &Style::code }
};
- auto it = open_tags.find([&](const String& open_tag) {
+ auto it = open_tags.find_if([&](const String& open_tag) {
if (open_tag == "a" && current_style.href != span.style.href)
return true;
if (open_tag == "img" && current_style.img != span.style.img)