You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--watch (and preview, server) discard custom separate style sheet after on live updates (style sheet is only considered correctly on first translation)
#584
Open
N3bukadne7ar opened this issue
Aug 10, 2024
· 2 comments
As mentioned, I have also seen this behavior in the --watch and --server modes.
There is no issue with style overrides done directly in the mardown file. E.g. I can change styles in the frontmatter or with a html <style> block without problems. This is also the workaround that I am currently using.
I've tested by using your minimal example but the reported behavior was not reproducible at least for my Ubuntu environment. Preview window will be refreshed correctly when changed the Markdown contents. Could you describe more detailed contexts around using Marp?
For example, there is a known issue microsoft/WSL#4739 if you are using Ubuntu through WSL: Changing contents of the file from Windows apps will not notify to Linux apps. (#566 (comment))
Version of Marp Tool
3.4.0
Operating System
Linux
Environment
marp-cli 3.4.0
marpit 3.0.0
npm 10.5.0
ubuntu 20.04
How to reproduce
marp --html --preview --theme-set style/ -- presentation.md
Expected behavior
Custom style always loaded correctly
Actual behavior
Custom stylesheet seemingly ignored for any updates in "preview", "watch" and "server" mode.
Additional information
minimal.zip
The text was updated successfully, but these errors were encountered: