Mix.install([:req, :mdex])
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())