Definitions are converted to HTML with a chain of toHTML functions that output a string per element. Output looks fine in most cases, but I've already had to add the special insideAnchor argument to avoid generating nested <a> tags, and there are probably other edge cases. At some point it would be a good idea to investigate moving this to a proper DOM-aware system like SwiftSoup.
Definitions are converted to HTML with a chain of
toHTMLfunctions that output a string per element. Output looks fine in most cases, but I've already had to add the specialinsideAnchorargument to avoid generating nested<a>tags, and there are probably other edge cases. At some point it would be a good idea to investigate moving this to a proper DOM-aware system like SwiftSoup.