mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
LibMarkdown: Convert a bunch of StringBuilder::appendf() => appendff()
This commit is contained in:
parent
beae2d5caa
commit
89f5f92b7e
4 changed files with 14 additions and 18 deletions
|
@ -11,11 +11,7 @@ namespace Markdown {
|
|||
|
||||
String Heading::render_to_html() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.appendf("<h%zu>", m_level);
|
||||
builder.append(m_text.render_to_html());
|
||||
builder.appendf("</h%zu>\n", m_level);
|
||||
return builder.build();
|
||||
return String::formatted("<h{}>{}</h{}>\n", m_level, m_text.render_to_html(), m_level);
|
||||
}
|
||||
|
||||
String Heading::render_for_terminal(size_t) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue