Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

MDEx Playground

playground.livemd

MDEx Playground

Mix.install([:req, :mdex])

Section

defmodule Playground do
  @markdown Req.get!("https://raw.githubusercontent.com/elixir-lang/elixir/main/README.md").body

  def run do
    MDEx.to_html(@markdown,
      render: [unsafe_: true],
      features: [sanitize: true, syntax_highlight_theme: "github_light"]
    )
  end
end

IO.puts(Playground.run())