Closed sairus7 closed 4 months ago
Could this be a JuliaSyntax issue? @c42f does this ring any bell? 🙏🏽
The _str
macros don't support interpolation, and md_str
contains its own implementation of interpolation that does not always work.
In this case, I think the issue is that @md_str
tries to find the subexpression that is being interpolated (should be @bind ch_num Select(1:8, default = 1)
), but this gives a wrong result.
My guess is that it finds (@bind ch_num Select(1:8, default = 1)
, this gives the same error:
You can tell that this is not an issue with the parser, because changing md
to html
or raw
fixes it:
So the solution is: switch to MarkdownLiteral.jl, or make it simpler for Markdown:
let
bond = @bind ch_num Select(1:8, default = 1)
md"""
ch_num: $(bond)
"""
end
If a variable name has underscore and I mention it in markdown together with bind interpolation, the following error occurs: