Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow to specify language for transform.HighlightCodeBlock #11872

@skrysm

Description

@skrysm

As discussed here, it would be useful if one could overwrite the language in transform.HighlightCodeBlock - similar how it is possible to do so in transform.Highlight. At the moment transform.HighlightCodeBlock uses .Type which can't be changed.

One suggestion is to allow to overwrite the language via the options. (Although this could create some "interesting" scenarios if this option is then used in transform.Highlight or in a code block attribute in Markdown.)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions