jQuery plugin: Shift Heading Levels
Shifts heading levels up or down.
Use
;
shift_amt
can be positive or negative, and defaults to 1. Heading levels will not be shifted below 1 or above 6.
If something other than a heading is selected, the headings it contains will be shifted.
Attributes and contents are maintained.
Examples
// Changes all <h1> to <h2>.; // Changes all <h2> to <h4>.; // Changes all <h3> to <h2>.; // Changes all <h4> to <h6>.; // Changes <h5 id="this-is-an-h5"> to <h6 id="this-is-an-h5">.; // Shifts all headings in <div id="this-is-a-div"> up by 1.;