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
route("/md1") dohtml(
path"views/markdown/blog1.jl.md",
layout =path"layouts/markdown.jl.html",
context =@__MODULE__,
)
end
Which is somewhat puzzling since looking at html source code, it seems like context defaults to @__MODULE__ while the observed behavior is different when not specified as seen in the above /md2 example where rendering succeed (despite the parsing error).
jeremiedb
changed the title
Markdown parsing fails when watch is true and if @__MODULE__ is specified
Markdown parsing errors when watch is true or if context is specified
Jan 10, 2023
I think the watch config option was the wrong diagnosis. It actually looks like it's format_julia_builds = true that results in MD parsing error, sorry about that.
jeremiedb
changed the title
Markdown parsing errors when watch is true or if context is specified
Markdown parsing errors when format_julia_builds=true or if context is specified
Jan 14, 2023
2 bugs were identified in relation to markdown rendering.
watch
is set totrue
, logging throws an error when parsing markdown files:The error can be reproduced by running the following app (
dev
branch): https://github.com/jeremiedb/GenieExperiments.jl/tree/devThen go to http://127.0.0.1:8000/md2
The actual config line causing the issue is: https://github.com/jeremiedb/GenieExperiments.jl/blob/303f9603eb6f8a9372f5f10adda62837e46d5c02/config/env/dev.jl#L12
html
function, ifcontext
is specified as= @__MODULE__
, it results error with following stack trace and returns the 500 server error page:It can be reproduced by going to
http://127.0.0.1:8000/md1
in the same GenieExperiments app.The routes is specified as the following: https://github.com/jeremiedb/GenieExperiments.jl/blob/303f9603eb6f8a9372f5f10adda62837e46d5c02/routes.jl#L27-L33:
Which is somewhat puzzling since looking at html source code, it seems like
context
defaults to@__MODULE__
while the observed behavior is different when not specified as seen in the above/md2
example where rendering succeed (despite the parsing error).All packages were on latest releases:
The text was updated successfully, but these errors were encountered: