title: R anchors in markdown
body: <p>In creating a Rmd file I included an internal hyperlink: </p>
  
  <pre><code>   [hlink](#id1)  
  </code></pre>
  
  <p>and then further on an anchor </p>
  
  <pre><code>&lt;a id="id1"&gt;&lt;/a&gt; . 
  </code></pre>
  
  <p>When I then use Knit HTML (in RStudio) everything works fine and the
  internal hyperlink works fine but I also get an unwanted �  </p>
  
  <pre><code>&lt;p&gt;&lt;a id="id1"&gt;&lt;/a&gt;�&lt;/p&gt;
  </code></pre>
  
  <p>How can I avoid getting this error?</p>