- Commit
- 0c0ae7a0962a7dce1b3328d95d96b9fde6c6cc52
- Parent
- eea23326c89875d6737e6bbeec7f7b201ed36d03
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
xml format: use 'destination' instead of 'url', like the spec.
My personal build of CMark ✏️
xml format: use 'destination' instead of 'url', like the spec.
2 files changed, 2 insertions, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | CommonMark.dtd | 2 | 1 | 1 |
Modified | src/xml.c | 2 | 1 | 1 |
diff --git 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 @@ -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=\"");