title: Removing inline formats in Quill
body: <p>I'm having some trouble getting removeFormat to work as it should. Funnily, I thought I had this working a couple days ago; but now when I check it it's not right. It is removing the block-level formatting regardless of where the selection is. A simple example, using the Quill Quickstart with a few modifications:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  var editor = new Quill('#editor', {
      modules: { toolbar: '#toolbar' },
      theme: 'snow'
    });
    let Block = Quill.import('blots/block');
  let Parchment = Quill.import('parchment');
  
   class BlockquoteBlot extends Block { }
  BlockquoteBlot.scope = Parchment.Scope.BLOCK;
   BlockquoteBlot.blotName = 'blockquote';
   BlockquoteBlot.tagName = 'blockquote';
  
   Quill.register(BlockquoteBlot);
   let quill = new Quill('#editor');
  
    $('#italic-button').click(function() {
      quill.format('italic', true);
    });
    $('#bold-button').click(function() {
      quill.format('bold', true);
    });
    $('#blockquote-button').click(function() {
      quill.format('blockquote', true);
    });
    $('.cust-clear').click(function(ev) {
      var range = quill.getSelection();
      quill.removeFormat(range.index, range.length);
    });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdn.quilljs.com/1.0.3/quill.snow.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdn.quilljs.com/1.0.3/quill.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!-- Create the toolbar container --&gt;
  &lt;div id="toolbar"&gt;
    &lt;button id="bold-button" class="ql-bold"&gt;Bold&lt;/button&gt;
    &lt;button id="italic-button" class="ql-italic"&gt;Italic&lt;/button&gt;
    &lt;button id="blockquote-button" class="ql-blockquote"&gt;Blockquote&lt;/button&gt;
    &lt;button class="cust-clear" title="Clear Formatting"&gt;X&lt;/button&gt;
  &lt;/div&gt;
  
  &lt;!-- Create the editor container --&gt;
  &lt;div id="editor"&gt;
    &lt;p&gt;Hello World!&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>In this example, if I apply bold to "Hello" and make the entire line a blockquote, all looks as it should. If I then select "Hello" and click my X button to remove the formatting, it removes the blockquote formatting even though I'm nowhere near a "\n" character. Am I misunderstanding removeFormat, or is there an error in how I've created my BlockquoteBlot? I took that code mostly from the Medium demo on the Quill site, but I found in some cases I needed to specifically define the scope so that the tag would be recognized as block (that may not be necessary for this demo, but I'm including it in case it poses an issue).</p>