instant-markdown / vim-instant-markdown

Instant Markdown previews from Vim
https://instant-markdown.github.io
Other
2.73k stars 249 forks source link

fi is as wide as a single character inside pre tag. #173

Closed rnmhdn closed 4 years ago

rnmhdn commented 4 years ago

Markdown:

<pre>
fi 1
aa 2
</pre>

expect to get 1 and 2 be aligned like above but they are not aligned and instead they look like below:

fi 1
aa 2
ashwinvis commented 4 years ago

Is renedered as a single character?

rnmhdn commented 4 years ago

No, Here is the rendered HTML:

<body>
  <div class="wrapper">
    <div class="container">
      <div class="repository-with-sidebar repo-container new-discussion-timeline with-full-navigation">
        <div id="js-repo-pjax-container" class="repository-content context-loader-container">
          <div id="readme" class="boxed-group flush clearfix announce instapaper_body md">
            <article class="markdown-body"><pre>fid
ara
</pre>
</article>
          </div>
        </div>
      </div>
    </div>
  </div>

</body>
ashwinvis commented 4 years ago

Have you tried configuring another default monospace font?

ashwinvis commented 4 years ago

Related: https://nedbatchelder.com/blog/201604/latos_unfortunate_ligatures.html