doc/using-the-pandoc-api.md: proofread (minor)

This commit is contained in:
Kolen Cheung 2017-10-26 18:16:12 -07:00
parent 0e47094f82
commit da1e626500

View file

@ -21,7 +21,7 @@ Pictorially:
[input format] ==reader==> [Pandoc AST] ==writer==> [output format] [input format] ==reader==> [Pandoc AST] ==writer==> [output format]
``` ```
This architecture allows pandoc to perform $M \times n$ This architecture allows pandoc to perform $M \times N$
conversions with $M$ readers and $N$ writers. conversions with $M$ readers and $N$ writers.
The Pandoc AST is defined in the The Pandoc AST is defined in the
@ -313,10 +313,10 @@ Note that this looks first in the
users to override the system defaults. If you want to disable users to override the system defaults. If you want to disable
this behavior, use `setUserDataDir Nothing`. this behavior, use `setUserDataDir Nothing`.
To render a template, use `renderTemplate'`, which takes two To render a template, use `renderTemplate`, which takes two
arguments, a template (String) and a context (any instance arguments, a template (String) and a context (any instance
of ToJSON). If you want to create a context from the metadata of ToJSON). If you want to create a context from the metadata
part of a Pandoc document, use `metaToJSON'` from part of a Pandoc document, use `metaToJSON` from
[Text.Pandoc.Writers.Shared]. If you also want to incorporate [Text.Pandoc.Writers.Shared]. If you also want to incorporate
values from variables, use `metaToJSON` instead, and make sure values from variables, use `metaToJSON` instead, and make sure
`writerVariables` is set in `WriterOptions`. `writerVariables` is set in `WriterOptions`.