From 3bbf63a126c48ab9368c0754ff32f1661b184843 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Mon, 21 Sep 2020 03:42:58 +0100 Subject: latex: Dump out S-Expr of any unhandled markdown Printing the text is only so helpful; the most important thing to know is what kind of element it actually is, which is lost when extracting the text. Instead, print the whole S-Expr. --- src/latex.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/latex.ml b/src/latex.ml index 9f5979c1..d521a108 100644 --- a/src/latex.ml +++ b/src/latex.ml @@ -260,7 +260,7 @@ let latex_of_markdown str = ^ "\n\\end{itemize}" | Br -> "\n" | NL -> "\n" - | elem -> failwith ("Can't convert to latex: " ^ to_text [elem]) + | elem -> failwith ("Can't convert to latex: " ^ Omd_backend.sexpr_of_md [elem]) and format elems = String.concat "" (List.map format_elem elems) -- cgit v1.2.3