-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to render any arbitrary HTML tag instead of erroring? #51
Comments
I'm also trying to find a way to improve the user experience for this but am encountering some difficulties Hello. I'm new to Elm. I'm trying to see if I can improve this Ellie https://ellie-app.com/d7R3b9FsHfCa1 The example works but it's a little fragile. For example if I add a tag like
Clearly "photo" is isn't relevent for a
I'm trying to add a generic catch-all renderer to this list which will convert unrecognized I thought I would get started by trying make my own version of "Markdown.Html.tag"
but that didn't work because 'Renderer' and 'Markdown.HtmlRenderer.HtmlRenderer' weren't defined
but when I try adding that to my Ellie I get the error
I assumed that if Markdown/Html.elm can import Markdown.HtmlRenderer then my Ellie should be So my question(s) for anyone here is:
Any and all advice is appreciated. Thanks, |
@houseofmercy-github elm-markdown currently only exposes the API you see in I do think it would make sense to allow for some way to handle HTML parsing errors (either a different default and/or an API for customizing how to handle it), which I touched on a little bit here: #99 (reply in thread). |
Something like this?
The text was updated successfully, but these errors were encountered: