Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 397 Bytes

playground.livemd

File metadata and controls

22 lines (17 loc) · 397 Bytes

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())