My docstrings often contain Latex so they have $ and \ characters in them, 
so I'd like to not have to escape them manually every time. I'm trying to 
do so by defining an R_str macro, but it seems to prevent the docstring 
from attaching to its function. Is there a way to achieve this?

macro R_str(s)
    s
end

R"""
My docstring $a+\alpha$
"""
function myfunc()
end

>?myfunc
  No documentation found.



Thanks. 

Reply via email to