Skip to content

Add class to rendered img #281

Description

@BartMassey

It would be great to be able to reliably CSS style images rendered by cmark-gfm separately from other images that might appear on a site. As far as I can tell (?) there's no great way to do this now. I'm relying on "p img", but that seems like it might occasionally catch an img I didn't want.

Could we make CMARK_NODE_IMAGE get rendered with a class tag? Maybe something simple like class="cmark_image"? Class name bikeshedding welcome.

I'd be happy to put in the easy-looking pull request for this if it sounds like a thing to do.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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