Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Feature Request] Allow plugin to modify posthtml configuration through a setter #335

Copy link
Copy link

Description

@SukkaW
Issue body actions

RT.

Details

I am contributing to one of the posthtml's plugin htmlnano, and I have found maltsev/htmlnano#6.

In that feature request, htmlnano needs to implement a feature by removing optional attributes' quotes. But that behavior can not be done by the plugin, thus an implementation at the posthtml-render side has been made: posthtml/posthtml-render#30

Although quoteAllAttributes is now available to user configuration after posthtml/posthtml-render#30 is merged, but it is still not available for plugins. Thus there is still no way for htmlnano to control the behavior.

In the feature request, I want an API for plugins to modify the configuration. Take maltsev/htmlnano#6 as an example, if the user doesn't specific quoteAllAttributes to be enabled, htmlnano should be able to disable that option through the API. Also, plugins shouldn't override the configuration/behavior if the user is explicit so.

Reproduction (Code)

Not applicable.

Environment

Not applicable.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.