Skip to content

Add option to remove styles from front-end #194

@danielpost

Description

@danielpost

Thanks for the awesome plugin!

It would be great to have a filter or something similar to prevent outputting any styles on the front-end. I'd like to have all the classes from the highlighter available, but just add my own styling. Right now I'm using the render_block filter with regex to remove any <link> and <style> tags, but it would be nice to have a simple filter to take care of this.

Something like this would be great: add_filter( 'syntax_highlighting_code_block_output_styles', '__return_false' );

Let me know if anything is unclear.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions