Current section

Files

Jump to
tableau lib tableau extensions post_extension posts html_converter.ex
Raw

lib/tableau/extensions/post_extension/posts/html_converter.ex

defmodule Tableau.PostExtension.Posts.HTMLConverter do
@moduledoc false
def convert(_filepath, body, _attrs, _opts) do
{:ok, config} = Tableau.Config.new(Map.new(Application.get_env(:tableau, :config, %{})))
MDEx.to_html(body, config.markdown[:mdex])
end
end