from app.markdown_utils import render_markdown def test_bold_and_heading_render_as_html(): html = render_markdown("# 제목\n\n**굵게** 쓴 문장입니다") assert "

제목

" in html assert "굵게" in html def test_single_newline_becomes_line_break(): html = render_markdown("첫째 줄\n둘째 줄") assert "" in html assert "
  • 하나
  • " in html def test_dash_and_star_bullets_render_identically(): # 마크다운 글머리 기호는 -/*/+ 전부 동일하게 처리돼야 한다 — 에디터 쪽 기본 기호(unorderedListStyle)만 # "-"로 바뀌었을 뿐, 렌더링 결과는 어떤 기호를 써도 같아야 한다. assert render_markdown("- 하나\n- 둘") == render_markdown("* 하나\n* 둘") == render_markdown("+ 하나\n+ 둘") def test_script_tag_is_stripped_not_executed(): html = render_markdown('본문') assert "본문') assert "onerror" not in html assert "