From 99aac68c639cb92e01e3c3d47585d481913123a7 Mon Sep 17 00:00:00 2001 From: Thibaut Lienart Date: Mon, 31 Jan 2022 14:29:38 +0100 Subject: [PATCH] forgot to specify the Literate flavor --- Project.toml | 2 +- src/eval/literate.jl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 5468bdef1..75f7865fa 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Franklin" uuid = "713c75ef-9fc9-4b05-94a9-213340da978e" authors = ["Thibaut Lienart "] -version = "0.10.67" +version = "0.10.68" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/eval/literate.jl b/src/eval/literate.jl index ef9a5e432..3ac48c830 100644 --- a/src/eval/literate.jl +++ b/src/eval/literate.jl @@ -5,7 +5,7 @@ const LITERATE_JULIA_FENCE = "$LITERATE_JULIA_REPLACE$LITERATE_FENCER" const LITERATE_JULIA_FENCE_L = length(LITERATE_JULIA_FENCE) const LITERATE_JULIA_FENCE_R = Regex(LITERATE_JULIA_FENCE) -const LITERATE_FLAV = ifelse(FD_ENV[:LITERATE_VERSION] < v"2.9.0", +const LITERATE_FLAVOR = ifelse(FD_ENV[:LITERATE_VERSION] < v"2.9.0", Literate.CommonMarkFlavor(), Literate.FranklinFlavor()) @@ -47,7 +47,7 @@ function literate_to_franklin(rpath::AS)::Tuple{String,Bool} # >> output the markdown Literate.markdown( fpath, outpath; - flavor=Literate.CommonMarkFlavor(), + flavor=LITERATE_FLAVOR, mdstrings=locvar(:literate_mds)::Bool, config=Dict("codefence" => (LITERATE_JULIA_FENCE => LITERATE_JULIA_REPLACE)), preprocess=s->replace(s, r"#hide\s*?\n" => "# hide\n"), @@ -57,7 +57,7 @@ function literate_to_franklin(rpath::AS)::Tuple{String,Bool} # >> output the script Literate.script( fpath, outpath; - flavor=Literate.CommonMarkFlavor(), + flavor=LITERATE_FLAVOR, mdstrings=locvar(:literate_mds)::Bool, postprocess=s->(MESSAGE_FILE_GEN_LIT * s), name=fname * "_script",