You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is that edoc (via Xmerl) requires the markup to be valid XHTML, and markup is still parsed within pre tags ('pre' just means "preformatted" and tells the parser to preserve whitespace). In this case, the error occurs even before Edown gets a chance to massage the data.
What you can do is either to escape the < and > (as < and > respectively) or to do this:
using <![CDATA[ ... ]]> as a wrapper to avoid having to escape the source. This should also be reasonably Edoc-compatible (although normal Edoc processing will ignore the lang="erlang" part).
As an aside, Edoc adds the <![CDATA[ ... ]]> wrapper when you use the ... ''' syntax (note though, how Edoc uses different end brackets from Github Markdown), but since it doesn't include any way to indicate the language (and erlang ... ''' would cause the "erlang" bit to end up on a line of its own. This would look funny in normal Edoc and Edown would have to guess that it means that the section should be highlighted as Erlang code).
When I'm pasting this to my overview.edoc:
I get:
And I also can't use Github's variant because of "```-quote ended unexpectedly" error.
The text was updated successfully, but these errors were encountered: