Comments (10)
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.
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.
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.
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.
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.
Oh sure, maybe it's an electron issue.
from vmd.
On OS X:
⌘
renders fine⌘
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.
👍 😉
Maybe use mdast-react (which could easily be forked for vdom?) for speed though.
from vmd.
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.
Just tested this again, and everything works fine now. ⌘
renders correctly as ⌘
from vmd.
Related Issues (20)
- Preview from clipboard HOT 4
- Odd highlighting with HCL HOT 1
- Rendering difference between vmd and Github
- <details> tag not working HOT 1
- Emojis does not work with links
- Please upgrade the 'electron' package, it crashes on macOS. HOT 1
- Scrolling bug HOT 2
- Support click to expand
- numbered lists rendering incorrectly
- Error when trying to install HOT 1
- Runtime errors on Mac OSX HOT 4
- Custom script in head tag
- Error installing in Ubuntu 20.04
- pipe to stdout HOT 1
- Cross Site Scripting vulnerability HOT 1
- Clipboard empty after closing vmd
- Problem installing on Mac HOT 4
- Create SECURITY.md
- Support for footnotes
- new line problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmd.