Skip to content

pub.dev API reference should support embedded base64 encoded image in data: url #4080

@espresso3389

Description

@espresso3389

I understand there's a discussion about images on API reference (such as #502).

My understanding is that we should upload the image to somewhere and document should embed the URL for it.

But if we do that, VS Code extension does not show the image on popup (it's another problem)

Video.mp4

So, my workaround for this is embedding the image using ![image](data:image/svg+xml;base64,....

https://github.com/espresso3389/pdfrx/blob/master/packages/pdfrx_engine/lib/src/pdfrx_api.dart#L416

As you can see it shown in the VS Code like this:

Image Image

Only the problem is that it is not shown on pub.dev's API reference:

Image

So, it would be better if pub.dev should have support for such embedded images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions