Skip to content

Commit

Permalink
forgot to specify the Literate flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Jan 31, 2022
1 parent b0d0bbb commit 99aac68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Franklin"
uuid = "713c75ef-9fc9-4b05-94a9-213340da978e"
authors = ["Thibaut Lienart <[email protected]>"]
version = "0.10.67"
version = "0.10.68"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
6 changes: 3 additions & 3 deletions src/eval/literate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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"),
Expand All @@ -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",
Expand Down

2 comments on commit 99aac68

@tlienart
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/53548

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.68 -m "<description of version>" 99aac68c639cb92e01e3c3d47585d481913123a7
git push origin v0.10.68

Please sign in to comment.