blob: fc8eb5964eb808c9d1adc138dea07a577b68ab07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
(ns clarktown.parsers
(:require
[clarktown.parsers.bold :as bold]
[clarktown.parsers.italic :as italic]
[clarktown.parsers.inline-code :as inline-code]
[clarktown.parsers.strikethrough :as strikethrough]
[clarktown.parsers.link-and-image :as link-and-image]
[clarktown.parsers.empty-block :as empty-block]
[clarktown.parsers.horizontal-line-block :as horizontal-line-block]
[clarktown.parsers.quote-block :as quote-block]
[clarktown.parsers.heading-block :as heading-block]))
(def parsers
[{:matcher empty-block/is?
:renderers [empty-block/render]}
{:matcher horizontal-line-block/is?
:renderers [horizontal-line-block/render]}
{:matcher heading-block/is?
:renderers [bold/render
italic/render
inline-code/render
strikethrough/render
link-and-image/render
heading-block/render]}
{:matcher quote-block/is?
:renderers [quote-block/render]}
{:renderers [bold/render
italic/render
inline-code/render
strikethrough/render
link-and-image/render]}])
|