summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 41bfa52..cc12bb4 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -146,7 +146,7 @@ static bool is_autolink(cmark_node *node) {
if (strcmp((const char *)url, "mailto:") == 0) {
url += 7;
}
- return strcmp((const char *)url, (char *)link_text->as.literal.data) == 0;
+ return strcmp((const char *)url, (char *)link_text->data) == 0;
}
// if node is a block node, returns node.