From ce96dd264fd2385303f48259e5e8d1431d22b91d Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Fri, 15 Apr 2022 19:56:01 +0200 Subject: Implement Markdown correction mechanism This fixes the issue for ATX headings and code blocks where if there were no empty lines below and above of them it couldn't correctly identify those blocks as what they were. There's now a Markdown correction function where we can add more of these corrections in the future, making the whole thing a lot easier. --- src/clarktown/core.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/clarktown/core.clj') diff --git a/src/clarktown/core.clj b/src/clarktown/core.clj index f192cc4..a6ed42c 100644 --- a/src/clarktown/core.clj +++ b/src/clarktown/core.clj @@ -24,4 +24,7 @@ ([markdown] (render markdown parsers/parsers)) ([markdown given-parsers] - (parser/parse markdown given-parsers))) \ No newline at end of file + (parser/parse markdown given-parsers))) + +(comment + (render (slurp "./test.md"))) \ No newline at end of file -- cgit v1.2.3