mirror of
https://github.com/Hilbis/Hilbish
synced 2025-07-03 09:44:17 +00:00
27 lines
433 B
Elixir
27 lines
433 B
Elixir
defmodule Parse do
|
|
def md_to_html(a) do
|
|
import MDEx
|
|
MDEx.to_html!(a, extension: [
|
|
strikethrough: true,
|
|
tagfilter: true,
|
|
table: true,
|
|
autolink: true,
|
|
tasklist: true,
|
|
footnotes: true,
|
|
shortcodes: true,
|
|
],
|
|
parse: [
|
|
smart: true,
|
|
relaxed_tasklist_matching: true,
|
|
relaxed_autolinks: true
|
|
],
|
|
render: [
|
|
github_pre_lang: true,
|
|
unsafe_: true,
|
|
],
|
|
features: [
|
|
sanitize: true
|
|
])
|
|
end
|
|
end
|