@ -29,17 +29,29 @@ an `@meta` block have been added, that sets the `EditURL` variable. This is used
@@ -29,17 +29,29 @@ an `@meta` block have been added, that sets the `EditURL` variable. This is used
by Documenter to redirect the "Edit on GitHub" link for the page,
see [Interaction with Documenter](@ref).
The `@example` blocks are wrapped in 4 consecutive backticks so as to allow for docstrings containing triple backticks, for example:
````julia
"""
This function perform the following calculation:
```math
x_1 + x_2
```
"""
f(x) = x[1] + x[2]
````
If your Julia code itself contains 4 consecutive backticks, you can use the keyword argument `codefence` to setup 5 backticks for code blocks, see [Configuration](@ref).
It possible to configure `Literate.markdown` to also evaluate code snippets, capture the
result and include it in the output, by passing `execute=true` as a keyword argument.
The result of the first code-block in the example above would then become
````markdown
```julia
`````markdown
````julia
x = 1//3
```
```
````
````
1//3
```
````
`````
In this example the output is just plain text. However, if the resulting value of the code
block can be displayed as an image (png or jpeg) Literate will include the image
edit_commit="master"# TODO: Make this configurable like Documenter?
deploy_branch="gh-pages"# TODO: Make this configurable like Documenter?
@ -296,7 +296,7 @@ See the manual section about [Configuration](@ref) for more information.
@@ -296,7 +296,7 @@ See the manual section about [Configuration](@ref) for more information.
|`credit`|Booleanforcontrollingtheadditionof`This file was generated with Literate.jl ...`tothebottomofthepage.IfyoufindLiterate.jlusefulthenfeelfreetokeepthis.|`true`||
plain_fence="\n```\n"=>"\n```"# issue #101: consecutive codefenced blocks need newline
plain_fence="\n````\n"=>"\n````"# issue #101: consecutive codefenced blocks need newline; issue #144: quadruple backticks allow for tripple backticks in the output - won't probably ever occur, but better safe than sorry