# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors
Hello
World!
" end test "raw HTML" do code = ~s[OwO] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == "#{code}
" end test "rulers" do code = ~s[before\n\n-----\n\nafter] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == "before
after
" end test "headings" do code = ~s[# h1\n## h2\n### h3\n] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == ~s[" end test "code" do code = ~s[`mix`] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == ~s[whoms’t are you quoting?
mix
mix
puts "Hello World"
]
end
test "lists" do
code = ~s[- one\n- two\n- three\n- four]
result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer})
assert result == "#{code}
" code = ~s[*aaaa~*] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == ~s[aaaa~
] code = ~s[**aaaa~**] result = Earmark.as_html!(code, %Earmark.Options{renderer: Pleroma.EarmarkRenderer}) assert result == ~s[aaaa~
] # strikethrought code = ~s[aaaa~