haskell / haddock

Haskell Documentation Tool

Home Page:www.haskell.org/haddock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML fragment

tonyday567 opened this issue · comments

Does haddock accept HTML fragments?

In the numhask haddock, I have an svg image in the docs, and haddock renders:

![nh](docs/other/nh.svg)

as

<img src="docs/other/nh.svg" title="nh">

The image would be clickable and link to the codebase if I could say:

<object data="docs/other/nh.svg" type="image/svg+xml"></object>

If this is not possible at the moment, would it be difficult to develop a solution?

Hey, I don't think it is possible at the moment, unfortunately.

I think there is an unavoidable level of complexity in doing so, but it is not impossible.

I imagine it being a subset of the markdown enhancements given that arbitrary html is part of most markdown standards.

Oh yes we are definitely getting this for free once Markdown is supported