symphony-org / frost

Frost
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Two rendering functions #21

Closed EncodePanda closed 5 years ago

EncodePanda commented 5 years ago

Modify Plugin so that it renders both content ([Block]) or text ([Inline]).

For now the function is substitute :: String -> Sem r ([Block], [Inline]), in the future hopefully this could be polymorphic and we would let the caller to decide which should be rendered (since rendering might be also expensive). But for now, this should suffice.