Skip to content

Commit 8d264d9

Browse files
committed
Add some potentially helpful file information to unexpected interpolation problems in markdown
1 parent fab4eeb commit 8d264d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/html/HTMLWriter.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,8 @@ function domify(dctx::DCtx, ::Node, e::MarkdownAST.JuliaValue)
24432443
24442444
To write the dollar sign, escape it with `\\\$`
24452445
2446-
We don't have the file or line number available, but we got given the value:
2446+
Navnode is currently set to $(dctx.navnode.page), with parent $(dctx.navnode.parent), and we
2447+
got given the value:
24472448
24482449
`$(e.ref)` which is of type `$(typeof(e.ref))`
24492450
"""

src/latex/LaTeXWriter.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ function latex(io::Context, node::Node, value::MarkdownAST.JuliaValue)
856856
857857
To write the dollar sign, escape it with `\\\$`
858858
859-
We don't have the file or line number available, but we got given the value:
859+
We have the file name $(io.filename), and we got given the value:
860860
861861
`$(value.ref)` which is of type `$(typeof(value.ref))`
862862
"""

0 commit comments

Comments
 (0)