# Pleroma: A lightweight social networking server
# Copyright © 2020 Pleroma Authors
Hello
World!
" end test "raw HTML" do code = ~s[OwO] result = Pleroma.Formatter.markdown_to_html(code) assert result == "#{code}
" end test "rulers" do code = ~s[before\n\n-----\n\nafter] result = Pleroma.Formatter.markdown_to_html(code) assert result == "before
after
" end test "headings" do code = ~s[# h1\n## h2\n### h3\n] result = Pleroma.Formatter.markdown_to_html(code) assert result == ~s[" end test "code" do code = ~s[`mix`] result = Pleroma.Formatter.markdown_to_html(code) 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 = Pleroma.Formatter.markdown_to_html(code)
assert result == "#{code}
" code = ~s[*aaaa~*] result = Pleroma.Formatter.markdown_to_html(code) assert result == ~s[aaaa~
] code = ~s[**aaaa~**] result = Pleroma.Formatter.markdown_to_html(code) assert result == ~s[aaaa~
] # strikethrought code = ~s[aaaa~