-- HTML to Markdown conversion tests
SELECT rag.markdown_from_html('
Hello
');
SELECT rag.markdown_from_html('Hello world
');
SELECT rag.markdown_from_html('Title
Paragraph
');
SELECT rag.markdown_from_html('');
SELECT rag.markdown_from_html('Link');
-- Note: text_from_pdf and text_from_docx require binary input which is harder to test in regression tests
-- We'll test that the functions exist and have the right signature
SELECT 'text_from_pdf_exists' AS test_name,
count(*) > 0 AS result
FROM pg_proc
WHERE proname = 'text_from_pdf'
AND pronamespace = (SELECT oid FROM pg_namespace WHERE nspname = 'rag');
SELECT 'text_from_docx_exists' AS test_name,
count(*) > 0 AS result
FROM pg_proc
WHERE proname = 'text_from_docx'
AND pronamespace = (SELECT oid FROM pg_namespace WHERE nspname = 'rag');