Sponsor us and add your link here. Help this open-source site — with open traffic stats — stay alive.
Notesclub

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"]
    )
  end
end

IO.puts(Playground.run())