summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CommonMark.dtd2
-rw-r--r--src/xml.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CommonMark.dtd b/CommonMark.dtd
index 9b3deaf..27de97a 100644
--- a/CommonMark.dtd
+++ b/CommonMark.dtd
@@ -59,7 +59,7 @@
<!ELEMENT link (%inline;)*>
<!ATTLIST link
- url CDATA #REQUIRED
+ destination CDATA #REQUIRED
title CDATA #IMPLIED>
<!ELEMENT image (%inline;)*>
diff --git a/src/xml.c b/src/xml.c
index 6689997..8a1d3fc 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -113,7 +113,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type,
break;
case CMARK_NODE_LINK:
case CMARK_NODE_IMAGE:
- cmark_strbuf_puts(xml, " url=\"");
+ cmark_strbuf_puts(xml, " destination=\"");
escape_xml(xml, node->as.link.url, -1);
cmark_strbuf_putc(xml, '"');
cmark_strbuf_puts(xml, " title=\"");