Closed peacock0803sz closed 2 weeks ago
UPDATE: Founded a typo g:glance#styleseet
(correct: g:glance#stylesheet
), but still not working the font configuration after fixing the typo...
AH, there still is a typo. font-famiiy
should be font-family
.
@tani Oh, sorry! I fixed but not it isn't working well 😕
I see. I will check it again.
humm... It looks the g:glance#stylesheet
value was inside of the <iframe>
tag 👀
Your point is the expected behavior. It is not a problem.
This issue is solved.
You can use join()
to concatenate all strings.
Thank you for chatting in vim-jp slack, It's my lack of understanding for Vim script...
With .vimrc
like this, it works correctly ~~ Then I'll make a PR to share this tips :)
let s:stylesheet =<< trim END
html, body, #viewer, #root {
border: none;
margin: 0.5rem;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif !important;
}
END
let g:glance#stylesheet = join(s:stylesheet, "\n")
Screenshot
https://github.com/user-attachments/assets/0b6236aa-bb6a-44d0-9fa6-44f8d9ab7bfa
Expected Behavior
Renders with sans-serif style fonts It works with other properties (
margin
andborder
), so is the wrong CSS selector forfont-family
...?Environment Versions
denops.vim: commit
3a38e08
vim-glance: commite645073
Step to Reproduce
Create those tow files:
.vimrc
:example.md
: (Escaped the Nested Code Block)