See the examples at elm-markdown-transforms.netlify.app.
See the documentation at package.elm-lang.org.
This package is for working with the dillonkearns/elm-markdown package. It aims to make it easier for the users of elm-markdown to write more sophisticated Renderers.
Some examples of tasks with markdown that this library may make easier for you:
Model
access), you need to render to a function. Take a look at parameterized
.validated
.StaticHttp.Request
s in your renderer: See withStaticHttpRequests
.reduce
.I highly recommend taking a look at the module documentation for Markdown.Scaffolded
.
Feel free to open an issue, if you want to discuss something.
Other than that, you can DM me @matheus23 in the elm slack.
You might notice, that this package has quite some dependencies, which would be introduced to all applications that depend on this package in their so-called 'indirect dependencies' (this is a field in the elm.json
file).
Essentially this has following downside: If any of your application's indirect dependencies aren't compatible, you can't use both together.
Therefore, keeping a package's dependency footprint as small as possible might seem like the right way.
However, in this package I'm experimenting with a different philosophy for following reasons:
--optimize
flag. So if you're worrying that the elm-pages indirect dependency introduced by your application that doesn't even use elm-pages will have any impact in production, it won't!If you are looking for a tool that helps you update to the latest package versions, I recommend (the confusingly named) zwilias/elm-json.
I am aware that this decision might be controversial for good reasons. After all, we track dependencies precisely for being able to depend on older versions than the most recent one! And there might be good reasons for depending on older versions, if you just can't upgrade to a newer version for some reason that is out of your control.
If there are any downsides I missed, of if you just don't agree with my prioritization or anything about this matter, please reach out to me.