Quote Convert

How quotation characters of markup attribute values should be handled. Allows for conversion to single quotes or double quotes. Markup tag attributes should always use double quotations, it’s the standard in languages like HTML.


🤡

none

Below is an example of how this rule works if set to none which is the default setting. No conversion of quotations is applied when using none. Notice how we have expressed a combination of both double and single quotes.

<div class='single' id="double">

  <p class='single' id="double">
    Hello World!
  </p>

</div>

<div class='single' id="double">

  <p class='single' id="double">
    Hello World!
  </p>

</div>

🤌

double

Below is an example of how this rule works if set to double which will go about converting and ensuring all markup quotations are using double quotations.

<div class='foo' id='bar'>

  <p class='baz' id='qux'>
     Quotes will convert to doubles
  </p>

</div>
<div class="foo" id="bar">

  <p class="baz" id="qux">
    Quotes will convert to doubles
  </p>

</div>

😳

single

Below is an example of how this rule works if set to single which will go about converting and ensuring all markup quotations are using singles. This is typically discourage in HTML and other markup languages.

<div class="foo" id="bar">

  <p class="baz" id="qux">
    Quotes will convert to singles
  </p>

</div>
<div class='foo' id='bar'>

  <p class='baz' id='qux'>
    Quotes will convert to singles
  </p>

</div>