@@ -12,7 +12,8 @@ and see how this is rendered in each of the output formats.
1212
1313## [ ** 4.1.** Markdown Output] (@id Markdown-Output)
1414
15- The (default) markdown output of the source snippet above is as follows
15+ Markdown output is generated by [ ` Literate.markdown ` ] ( @ref ) . The (default) markdown output
16+ of the source snippet above is as follows:
1617
1718``` @eval
1819import Markdown
@@ -28,24 +29,25 @@ an `@meta` block have been added, that sets the `EditURL` variable. This is used
2829by Documenter to redirect the "Edit on GitHub" link for the page,
2930see [ Interaction with Documenter] ( @ref ) .
3031
31- Some of the output rendering can be controlled with keyword arguments to
32- [ ` Literate.markdown ` ] ( @ref ) :
32+ See the section about [ Configuration ] ( @ref ) for how to configure the behavior and resulting
33+ output of [ ` Literate.markdown ` ] ( @ref ) .
3334
3435``` @docs
3536Literate.markdown
3637```
3738
3839## [ ** 4.2.** Notebook Output] (@id Notebook-Output)
3940
40- The (default) notebook output of the source snippet can be seen here:
41- [ notebook.ipynb] ( generated/notebook.ipynb ) .
41+ Notebook output is generated by [ ` Literate.notebook ` ] ( @ref ) . The (default) notebook output
42+ of the source snippet can be seen here: [ notebook.ipynb] ( generated/notebook.ipynb ) .
4243
4344We note that lines starting with ` # ` are placed in markdown cells,
4445and the code lines have been placed in code cells. By default the notebook
4546is also executed and output cells populated. The current working directory
4647is set to the specified output directory the notebook is executed.
47- Some of the output rendering can be controlled with keyword
48- arguments to [ ` Literate.notebook ` ] ( @ref ) :
48+
49+ See the section about [ Configuration] ( @ref ) for how to configure the behavior and resulting
50+ output of [ ` Literate.notebook ` ] ( @ref ) .
4951
5052``` @docs
5153Literate.notebook
@@ -70,7 +72,8 @@ and the [reveal.js](https://github.com/hakimel/reveal.js) notebook extension
7072
7173## [ ** 4.3.** Script Output] (@id Script-Output)
7274
73- The (default) script output of the source snippet above is as follows
75+ Script output is generated by [ ` Literate.script ` ] ( @ref ) . The (default) script output of the
76+ source snippet above is as follows:
7477
7578``` @eval
7679import Markdown
@@ -81,9 +84,32 @@ Markdown.parse(str)
8184```
8285
8386We note that lines starting with ` # ` are removed and only the
84- code lines have been kept. Some of the output rendering can be controlled
85- with keyword arguments to [ ` Literate.script ` ] ( @ref ) :
87+ code lines have been kept.
88+
89+ See the section about [ Configuration] ( @ref ) for how to configure the behavior and resulting
90+ output of [ ` Literate.script ` ] ( @ref ) .
8691
8792``` @docs
8893Literate.script
8994```
95+
96+ ## [ ** 4.4.** Configuration] (@id Configuration)
97+
98+ The behavior of [ ` Literate.markdown ` ] ( @ref ) , [ ` Literate.notebook ` ] ( @ref ) and
99+ [ ` Literate.script ` ] ( @ref ) can be configured by keyword arguments. There are two
100+ ways to do this; pass ` config::Dict ` as a keyword argument, or pass individual
101+ keyword arguments.
102+
103+ !!! note "Configuration precedence"
104+ Individual keyword arguments takes precedence over the ` config ` dictionary, so for e.g.
105+ ` Literate.markdown(...; config = Dict("name" => "hello"), name = "world") ` the
106+ resulting configuration for ` name ` will be ` "world" ` . Both individual keyword arguments
107+ and the ` config ` dictionary takes precedence over the default.
108+
109+ Available configurations with description and default values are given in the reference for
110+ [ ` Literate.DEFAULT_CONFIGURATION ` ] ( @ref ) just below.
111+
112+
113+ ``` @docs
114+ Literate.DEFAULT_CONFIGURATION
115+ ```
0 commit comments