Skip to content

DocumenterFlavor with julia codefences and semi-colons #166

@DrChainsaw

Description

@DrChainsaw

Not sure where this issue belongs, but when using DocumenterFlavour with julia codefences (to get uniform styling) and semi-colons to supress output a nothing #hide line which shows up in the generated document:

julia> mktempdir() do path
       testfile = joinpath(path, "testfile.md")
       write(testfile, """
       1+2;
       # ^ this shows up in generated webpage
       """)
       outfile = Literate.markdown(testfile, joinpath(path, "outfile.md"); flavor=Literate.DocumenterFlavor(), codefence="````julia" => "````")
       foreach(println, eachline(outfile))
       end
[ Info: generating markdown page from `...\AppData\Local\Temp\jl_8GbQxO\testfile.md`
[ Info: writing result to `...\AppData\Local\Temp\jl_8GbQxO\outfile.md\testfile.md`
1+2;
nothing #hide

^ this shows up in generated webpage


This page was generated using Literate.jl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions