aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-27 11:10:05 +0200
committerGitHub <noreply@github.com>2021-09-27 11:10:05 +0200
commit283e7da470796e9ec24782134cbfcded93f3612b (patch)
tree7edc93368802e0c3ee1f2d8962c148d6a3aa4151 /src
parenta0bb5c4130268edbd368a4a07d4a30f1064e9c86 (diff)
parent32669a6bc95e590c6b3421240b270fda99288a24 (diff)
Merge pull request #5292 from edolstra/update-lowdown
Update lowdown
Diffstat (limited to 'src')
-rw-r--r--src/libcmd/markdown.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/markdown.cc b/src/libcmd/markdown.cc
index 737356284..29bb4d31e 100644
--- a/src/libcmd/markdown.cc
+++ b/src/libcmd/markdown.cc
@@ -25,7 +25,7 @@ std::string renderMarkdownToTerminal(std::string_view markdown)
Finally freeDoc([&]() { lowdown_doc_free(doc); });
size_t maxn = 0;
- auto node = lowdown_doc_parse(doc, &maxn, markdown.data(), markdown.size());
+ auto node = lowdown_doc_parse(doc, &maxn, markdown.data(), markdown.size(), nullptr);
if (!node)
throw Error("cannot parse Markdown document");
Finally freeNode([&]() { lowdown_node_free(node); });
@@ -40,7 +40,7 @@ std::string renderMarkdownToTerminal(std::string_view markdown)
throw Error("cannot allocate Markdown output buffer");
Finally freeBuffer([&]() { lowdown_buf_free(buf); });
- int rndr_res = lowdown_term_rndr(buf, nullptr, renderer, node);
+ int rndr_res = lowdown_term_rndr(buf, renderer, node);
if (!rndr_res)
throw Error("allocation error while rendering Markdown");