Skip to content

attr_list values are included in social card's title, if set for h1 header #7913

@Andre601

Description

@Andre601

Context

No response

Bug description

When using the attr_list extension alongside the Social plugin and then set a attribute for the h1 header (i.e. a custom header ID) does the social plugin include the attribute in the title of the image.

Example (From reproduction):

# Hello world! { #hello }

Lorem ipsum dolor.

Resulting card:
Image

Related links

Reproduction

9.5.49-social-cards-display-issue.zip

Steps to reproduce

  1. Add social to the plugins option
  2. Add attr_list to the markdown_extensions option
  3. Build docs
  4. Check generated image in .ache folder.

Browser

Firefox

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions