Skip to content

Commit

Permalink
docs: Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
414owen committed Nov 12, 2023
1 parent f6f0495 commit c851c1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# pandoc-builder-monadic

This module provides a monadic DSL for constructing Pandoc documents.


```haskell
import Text.Pandoc.Builder.Monadic

myDoc :: Pandoc
myDoc = doc $ do
h1 "Work log"
para $ do
kv "month" "2023-10"
emph $ str k
str ": "
linebreak
para $ do
code "Wow, such code!"
code "It's a monoid too" <> strong "'cos why not"
```

0 comments on commit c851c1a

Please sign in to comment.