You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is issue on side of Literate, or Documenter, or both and fix needs to be applied to both of them.
When I generate markdown, execute it, and generate html site, the output is colored differently than when @example is executed using Documenter.
Here is a MWE:
using Pkg
cd(@__DIR__)
pkg"activate ."using Literate, Documenter
open("script.jl", "w+") do io
write(io, """ a = 2 + 2""")
end
Literate.markdown("script.jl", "src", execute=true, credit=false)
open("src/index.md", "w+") do io
write(io, """ ```@example a = 2 + 2 ```""")
endmakedocs(
sitename ="Test",
pages = [
"Home"=>"index.md",
"Script from Literate"=>"script.md",
],
)
The Home looks like this:
and Script from Literate like this:
specifically, when executed by documenter, generated code is
It is not really a bug/issue with either Literate or Documenter, it is just how things work. Documenter knows what it generates and insert those classes, but when you execute with Literate the result will look like regular code blocks (```-blocks with no language) from Documenters perspective.
I'm not sure if this is issue on side of Literate, or Documenter, or both and fix needs to be applied to both of them.
When I generate markdown, execute it, and generate html site, the output is colored differently than when
@example
is executed using Documenter.Here is a MWE:
The Home looks like this:
and Script from Literate like this:
specifically, when executed by documenter, generated code is
and when by literate, generated code is
The text was updated successfully, but these errors were encountered: