-
Background: Problem: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Marp team leaves the way to manage your themes and assets to users :) But if your brand is established, it's worth trying to use remote asset URLs served by localhost or CDN assets instead of the reference to local files. Markdown documents and theme CSS can access to assets over the remote URL. In addition, Marp for VS Code can fetch the theme via HTTPS url, as like as VS Code's Markdown preview. {
"markdown.marp.themes": [
"https://example.com/foo/bar/custom-theme.css",
]
} /* @theme custom-theme */
section {
background: url('https://example.com/foo/bar/images/foobar.webp') no-repeat center / cover;
} ---
marp: true
theme: custom-theme
---
# Hello ![w:1em h:1em](https://example.com/foo/bar/icons/icon.svg) |
Beta Was this translation helpful? Give feedback.
It's useful to manage themes and assets on GitHub, but it's not always necessary. You can use any web hosting service, or your local server
localhost
served by any way.@codingluke The raw URL on GitHub can be recognized as far as using Marp for VS Code to load themes. But for assets, referencing by
raw.githubcontent.com
may fail due to invalid MIME type. (ref. FAQ by deprecated RawGit)