Skip to content

Fix sharing images/meta tags generated by pandoc for bs4_book  #1050

@apreshill

Description

@apreshill

Hi-

I'm noticing (thanks to @mine-cetinkaya-rundel) that bs4_book links are missing <meta> tags.

Screen Shot 2020-12-24 at 8 43 49 AM

Same with tidytextmining, which I know used to work because I helped to fix the sharing images before 😉

Screen Shot 2020-12-24 at 8 44 56 AM

With bookdown::gitbook format, pandoc generated the <meta> tags correctly, provided the cover_image and url fields were filled in, like:

https://github.com/dgrtwo/tidy-text-mining/blob/dffbcc9d538f816cb8e545f039fa8f9ce6f5313a/index.Rmd#L16-L17

For example:
Screen Shot 2020-12-24 at 8 38 00 AM

When I search in the HTML of r4ds for example, I don't see the same <meta> tags for OpenGraph and twitter:
Screen Shot 2020-12-24 at 8 47 05 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bs4_book 🥾featurea feature request or enhancementnextto consider for next release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions