Skip to content

Support TS parameter on Gist embeds #10534

@dartiss

Description

@dartiss

The shortcode embed feature of Jetpack supports Gist - both as a shortcode and as a URL embed. However, neither support the use of the TS parameter (and if you use it on the URL embed it appears to break the embed - certainly in Gutenberg it does).

TS allows you to set the tab - as Gist is pretty poor at rendering the code with tabs how you defined them, this is great for overriding and displaying them as you want.

For example, this Gist is saved with a tab space of 4 but appears as 8 when embedded normally...

https://gist.github.com/dartiss/d0d117f251cf6b9bd750c19ec9377c23

However, the following will correct the tab spacing...

https://gist.github.com/dartiss/d0d117f251cf6b9bd750c19ec9377c23?ts=4

It's support for the latter that would be appreciated (particularly for the URL embed).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions