Giter Club home page Giter Club logo

Comments (10)

maxkueng avatar maxkueng commented on September 25, 2024

I'm guessing the font doesn't support that character. I tried both ⌘ and in a Markdown document and they both show up as a square in vmd. Though, if you copy the square from vmd and paste it into something that supports the character it shows a ⌘. So the transformation from ⌘ to does work.

from vmd.

 avatar commented on September 25, 2024

Ok, I see that now. I get the same behavior here. What font is being used in VMD? I'm on Linux and perhaps the wrong font is being used.

from vmd.

maxkueng avatar maxkueng commented on September 25, 2024

I'm also on Linux. The font family is 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif. The definition comes from the github-markdown-css package. On my system it renders with Liberation Sans which means it fell all the way through to sans-serif.

from vmd.

 avatar commented on September 25, 2024

I went into github-markdown-css and manually set the font to "Noto Sans" to see what would happen, and it's having the same problem. ⌘ is rendered as a square. So I'm guessing it's not the github-markdown-css package, but rather how VMD is interpreting the HTML entity code?

from vmd.

maxkueng avatar maxkueng commented on September 25, 2024

I just checked on in Chrome on GitHub and it also falls through to Liberation Sans but it does render the characters properly. You you're right. It must be something in vmd. Or in Electron.

from vmd.

 avatar commented on September 25, 2024

Oh sure, maybe it's an electron issue.

from vmd.

yoshuawuyts avatar yoshuawuyts commented on September 25, 2024

On OS X:

  • renders fine
  • &#8984 is interpreted as a literal

marked doesn't seem to allow encoding to be configured, mdast-html seems to allow it. I've been thinking of switching for a while; maybe this would work with mdast.

from vmd.

wooorm avatar wooorm commented on September 25, 2024

👍 😉

Maybe use mdast-react (which could easily be forked for vdom?) for speed though.

from vmd.

 avatar commented on September 25, 2024

Markn uses mdast and md2react and it's working fine on that app. In fact it would be nice if some features of VMD combined with Markn. 😉

from vmd.

 avatar commented on September 25, 2024

Just tested this again, and everything works fine now. ⌘ renders correctly as ⌘

from vmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.