This is unfortunate, as indicating an empty element by the use of the <item /> is permissible in the ATOM spec and in XML generally. Anyway, changing to <title></title> fixed the problem.
Template changed "C:\\site\\themes\\theme2018\\layouts\\shortcodes\\tip.html": WRITE
ERROR 2018/06/05 09:52:35 error processing shortcode "theme/shortcodes/tip.html" for page "example.md": html/template:theme/shortcodes/tip.html: ends in a non-text context: {stateRCDATA delimNone urlPartNone jsCtxRegexp attrNone elementTitle <nil>}
ERROR 2018/06/05 09:52:35 Failed to rebuild site: logged 1 error(s)
I got that SVG code from an icon generator so I assume it’s valid.
Should we improve Hugo’s behaviour in these situations? I think we should. At least with a more descriptive error than “ends in a non-text context: {stateRCDATA delimNone urlPartNone jsCtxRegexp attrNone elementTitle }” would be better I think.