Comments (2)
If you want to use :lang
pseudo-class selector, you have to mark parts of contents explicitly, by any HTML tags with lang
attribute.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
<span lang="zh-cmn-Hans">ζ¬’θΏ</span>
But typically that is not realistic. Nobody wants to mark all different languages manually.
In common web sites, a global font-family
has been set to use multiple fonts, and CJK fonts tends to set as a fallback of fonts that have only latin glyphs. You can follow this approach also in Marpit theme CSS.
section {
/* Use Arial first, and fallback to KaiTi if there were no glyphs. */
font-family: Arial, KaiTi;
}
from marpit.
Thank you very much.
With <style scoped>, this has solved my problem.
from marpit.
Related Issues (20)
- Invalid scoping for `:root` selector
- Maybe it's time to consider adding mermaid support again? HOT 1
- Node.js 18 support
- Implement previews for every pull request HOT 1
- the footnote in markdown syntax[^1] does not working properly HOT 1
- Basic Usage Steps HOT 3
- Support multiple locales in the docs HOT 1
- CSS container query support (`@container`) HOT 2
- Allow for fragmented list from a directive HOT 4
- Unexpected behavior of Marp when importing css in a scoped style HOT 1
- `paginate: hold` at the first page renders page number 0
- Alternative image attribute syntax HOT 2
- No alt text for 'bg' images HOT 3
- [FEATURE REQUEST]: Adding Stylesheet Directly in Markdown Via URL HOT 1
- Setting background without fill HOT 1
- Line continuations are not endorsed as paragraphs HOT 1
- Allow setting section id from markdown HOT 3
- Center a table in a slide HOT 2
- Render non-inline svg files HOT 2
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 marpit.