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
So the behavior your seeing is as designed, the idea is that you opt in to deciding how to render HTML tags. That way you can define custom tags (like a <video-embed> tag or a <tweet-embed> tag with custom logic for example).
That said, there are a couple of things to discuss:
The error message Ran into a oneOf with no possibilities! isn't very helpful and could be improved
It would probably be helpful to have a way to define an explicit list of HTML tags to allow to render directly rather than with the custom HTML renderer configuration. The philosophy of this package is to try to use more high-level tags rather than directly embedding low-level HTML. But there are cases where it could be useful, or where you may be rendering something that is from something like a GitHub README and might include direct HTML elements, so it would be nice to have an API for choosing a set of HTML tags to allow directly.
I'd be up for discussing both of those more, I think it would be great to find some improvements there!
Not sure which of these are intentional differences or not. Feel free to close if not useful! Happy to break out specific ones into separate issues.
I found all of these by trying to run the Markdown that makes up ths Markdown cheatsheet through elm-markdown.
GFM hidden anchors not supported
in elm-markdown, this throws
Ran into a oneOf with no possibilities!
https://ellie-app.com/hqBDTcpJRcFa1
GFM
In GFM
<pre lang="no-highlight"><code>
followed by a Markdown codeblock followed by</code></pre>
is supported, and renders like this:In elm-markdown, this throws
Ran into a oneOf with no possibilities!
https://ellie-app.com/hqBJb9ZTjBJa1
GFM
<code>
```
</code>
not supportedIn GFM this is supported and renders like this:
```
In elm-markdown
Ran into a oneOf with no possibilities!
https://ellie-app.com/hqBNh6T5HhNa1
GFM
<dl>
not supportedIn GFM this is supported:
And renders as:
In elm-markdown
Ran into a oneOf with no possibilities!
https://ellie-app.com/hqBR34VxGnba1The text was updated successfully, but these errors were encountered: