Giter VIP home page Giter VIP logo

cleaner-image-markup's Introduction

=== Cleaner Image Markup ===
Contributors: wearepixel8
Tags: images, image caption, figure, figcaption, gallery
Requires at least: 3.1
Compatible up to: 3.4.2
Tested up to: 3.4.2
Stable tag: 1.0.2
License: GPLv2

A simple plugin that will clean up the HTML image markup produced by WordPress.

== Description ==

Cleaner Image Markup will tidy up the HTML image markup for the following:

* Filter out the automatic wrapping of images with a `p` tag when inserted into posts
* Filter out the `width` and `height` attributes from post images.
* Return valid HTML5 caption markup using `figure` and `figcaption` with using the `[caption]` shortcode.
* Filter out the inline styles printed when using the `[gallery]` shortcode.

**Please note that Cleaner Image Markup will not alter the appearance of images within your post or pages.**

== Installation ==

You can install Cleaner Image Markup either via the WordPress Dashboard or by uploading the extracted `cleaner-image-markup` folder to your `/wp-conten/plugins/` directory. Once the plugin has been successfully installed, simply activate the plugin through the Plugins menu in your WordPress Dashboard.

== Frequently Asked Questions ==

== Screenshots ==

== Changelog ==

= 1.0.0 =
* Initial release

= 1.0.1 =
* Removed the filter reducing the amount of classes applied to images in a post
* Added a filter to prevent inline styles being printed when using the `[gallery]` shortcode.

= 1.0.2 =
* Developers can now filter the gallery shortcode output.
* Improved sanitization for gallery column settings.

= 1.0.3 =
* Removed image_send_to_editor hook
* Fixed apply_filters

= 1.0.4 =
* Added a conditional test to see if the gallery output has been filtered.

cleaner-image-markup's People

Watchers

James Cloos avatar Rafique avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.