Skip to content

How can I change the general fonts? #454

Answered by yhatt
Photonico asked this question in Q&A
Discussion options

You must be logged in to vote

Your CSS definitions in <style scoped> are absolutely correct, but it looks like that the wrong usage of style directive makes interrupting to apply inline styles in the whole of Markdown document.

By removing this line, your style should work well:

 ---
 marp: true
 math: katex
 size: 16:9
-style: 'style.css'
 paginate: true
 ---

style directive must set the content of CSS styles, and cannot specify the file name. Please refer to https://marpit.marp.app/directives?id=tweak-theme-style.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Photonico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants