Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

HTML fragment #1494

Open
tonyday567 opened this issue May 28, 2022 · 3 comments
Open

HTML fragment #1494

tonyday567 opened this issue May 28, 2022 · 3 comments
Labels
CommonMark Tickets and PRs about CommonMark support

Comments

@tonyday567
Copy link

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?

@Kleidukos
Copy link
Member

Kleidukos commented May 28, 2022

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.

@tonyday567
Copy link
Author

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

@Kleidukos
Copy link
Member

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

@Kleidukos Kleidukos added the CommonMark Tickets and PRs about CommonMark support label Jun 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CommonMark Tickets and PRs about CommonMark support
Projects
None yet
Development

No branches or pull requests

2 participants