|
|
|
@ -255,6 +255,15 @@ content = """ |
|
|
|
#nb #- |
|
|
|
#nb #- |
|
|
|
#nb # %% [markdown] {"meta": "data"} |
|
|
|
#nb # %% [markdown] {"meta": "data"} |
|
|
|
#nb # # Explicit markdown cell with metadata |
|
|
|
#nb # # Explicit markdown cell with metadata |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#= |
|
|
|
|
|
|
|
First multiline |
|
|
|
|
|
|
|
comment |
|
|
|
|
|
|
|
=# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#======================= |
|
|
|
|
|
|
|
Second multiline comment |
|
|
|
|
|
|
|
=======================# |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
const TRAVIS_ENV = Dict( |
|
|
|
const TRAVIS_ENV = Dict( |
|
|
|
@ -424,6 +433,8 @@ const GITLAB_ENV = Dict( |
|
|
|
@test occursin("# # Example", script) |
|
|
|
@test occursin("# # Example", script) |
|
|
|
@test occursin("# foo, bar", script) |
|
|
|
@test occursin("# foo, bar", script) |
|
|
|
@test occursin("# \\int f(x) dx", script) |
|
|
|
@test occursin("# \\int f(x) dx", script) |
|
|
|
|
|
|
|
@test occursin("# First multiline", script) |
|
|
|
|
|
|
|
@test occursin("# Second multiline comment", script) |
|
|
|
|
|
|
|
|
|
|
|
# verify that inputfile exists |
|
|
|
# verify that inputfile exists |
|
|
|
@test_throws ArgumentError Literate.script("nonexistent.jl", outdir) |
|
|
|
@test_throws ArgumentError Literate.script("nonexistent.jl", outdir) |
|
|
|
@ -556,6 +567,11 @@ end end |
|
|
|
hidden2 * hidden2 |
|
|
|
hidden2 * hidden2 |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
First multiline |
|
|
|
|
|
|
|
comment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Second multiline comment |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).* |
|
|
|
*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).* |
|
|
|
@ -877,6 +893,13 @@ end end |
|
|
|
} |
|
|
|
} |
|
|
|
""", |
|
|
|
""", |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
"source": [ |
|
|
|
|
|
|
|
"First multiline\\n", |
|
|
|
|
|
|
|
"comment" |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
""", |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
""" |
|
|
|
"source": [ |
|
|
|
"source": [ |
|
|
|
"---\\n", |
|
|
|
"---\\n", |
|
|
|
|