import { describe, expect, it } from "vitest" import { markdownToHtml, typograf } from "./text" describe("markdownToHtml", () => { it("should convert markdown paragraph to HTML", () => { expect(markdownToHtml("hello")).toBe("

hello

\n") }) it("should convert bold text", () => { expect(markdownToHtml("**bold**")).toBe("

bold

\n") }) it("should pass through raw HTML", () => { expect(markdownToHtml("
test
")).toBe("
test
") }) }) describe("typograf", () => { it("should apply Russian typographic rules", () => { const result = typograf("Привет - мир") expect(result).toContain("Привет") expect(result).toContain("мир") }) })