Skip to content

Docstrings rendering and math inside them (with Documenter) #131

@kellertuer

Description

@kellertuer

If you have math in a doc string, the compilation might fail, cf for example this line

https://github.com/JuliaManifolds/Manopt.jl/blob/74d873109c2fbc857a55b445ed78548702e89bf2/examples/FrankWolfeSPDMean.jl#L55-L67

The reason is that the rendering is encapsulated in

```@raw html
```

so the end of the math environment line ends the raw html making the rendering from markdown to html look very strange.

For now – sure – I can fix that locally by taking four or more backticks for the math environment.

Finally, in Pluto itself the cell with a function definition with a doctoring nicely renders the doctoring of the function as an output, while StaticPlutoHTML does not (no output cell) – any idea why this might be the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions