Org.jl
Org.jl copied to clipboard
Warning: No method for converting Org.RegularLink to a term representation currently exists
This warning came up a lot when I tried out the package:
Warning: No method for converting Org.RegularLink to a term representation currently exists
It would be great to have this fixed!
As a first try to fix this issue I did:
term(io::IO, l::Org.RegularLink, s::Vector{String}) = (term(io, l.description[1]); term(io, l.path))
This removes the warnings and shows the description correctly, but the path is not rendered.
EDIT: A more robust version seems to be
term(io::IO, l::Org.RegularLink, s::Vector{String}) = begin
if !isnothing(l.description)
for d in l.description
term(io, d)
end
end
term(io, l.path)
end
Thanks, Nathanael! As it happens term(io::IO, o::OrgDoc, link::RegularLink, stylecodes::Vector{String}=String[]) already exists but the warning isn't very good. I'll see what I can do about that.
I've just pushed 7ec8d9d32dbd6eadc489900d2550c2179fc48db1, which should help