|
|
|
@ -220,6 +220,7 @@ end # testset parser |
|
|
|
content = """ |
|
|
|
content = """ |
|
|
|
# # [Example](@id example-id) |
|
|
|
# # [Example](@id example-id) |
|
|
|
# [foo](@ref), [bar](@ref bbaarr) |
|
|
|
# [foo](@ref), [bar](@ref bbaarr) |
|
|
|
|
|
|
|
# [baz](@extref), [bax](@extref bbaaxx) |
|
|
|
x = 1 |
|
|
|
x = 1 |
|
|
|
#md # Only markdown |
|
|
|
#md # Only markdown |
|
|
|
# Only markdown #md |
|
|
|
# Only markdown #md |
|
|
|
@ -580,6 +581,7 @@ end end |
|
|
|
|
|
|
|
|
|
|
|
# [Example](@id example-id) |
|
|
|
# [Example](@id example-id) |
|
|
|
[foo](@ref), [bar](@ref bbaarr) |
|
|
|
[foo](@ref), [bar](@ref bbaarr) |
|
|
|
|
|
|
|
[baz](@extref), [bax](@extref bbaaxx) |
|
|
|
|
|
|
|
|
|
|
|
````@example inputfile |
|
|
|
````@example inputfile |
|
|
|
x = 1 |
|
|
|
x = 1 |
|
|
|
@ -1027,7 +1029,8 @@ end end |
|
|
|
""" |
|
|
|
""" |
|
|
|
"source": [ |
|
|
|
"source": [ |
|
|
|
"# Example\\n", |
|
|
|
"# Example\\n", |
|
|
|
"foo, bar" |
|
|
|
"foo, bar\\n", |
|
|
|
|
|
|
|
"baz, bax" |
|
|
|
] |
|
|
|
] |
|
|
|
""", |
|
|
|
""", |
|
|
|
|
|
|
|
|
|
|
|
@ -1263,6 +1266,7 @@ end end |
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
notebook = read(joinpath(outdir, "inputfile.ipynb"), String) |
|
|
|
@test !occursin("# [Example](@id example-id", notebook) |
|
|
|
@test !occursin("# [Example](@id example-id", notebook) |
|
|
|
@test !occursin("[foo](@ref), [bar](@ref bbaarr)", notebook) |
|
|
|
@test !occursin("[foo](@ref), [bar](@ref bbaarr)", notebook) |
|
|
|
|
|
|
|
@test !occursin("[baz](@ref), [bax](@ref bbaaxx)", notebook) |
|
|
|
|
|
|
|
|
|
|
|
# name |
|
|
|
# name |
|
|
|
Literate.notebook(inputfile, outdir, name = "foobar", execute = false) |
|
|
|
Literate.notebook(inputfile, outdir, name = "foobar", execute = false) |
|
|
|
|