Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview window not fully works when Previewing over 100 pages #530

Open
franzhuang opened this issue Jul 2, 2023 · 2 comments
Open

Preview window not fully works when Previewing over 100 pages #530

franzhuang opened this issue Jul 2, 2023 · 2 comments

Comments

@franzhuang
Copy link

franzhuang commented Jul 2, 2023

Hi,
I run marp-cli on my linux( ubuntu based). I found that preview window works good when I open with --preview at first. But when I edit md files and save, the preview window usually loads only part of my markdown file when I have more than ninety or one hundred pages, for example, loading only 82 or 73 of my 112 pages.
Now I solve this problem by opening the html file with firefox or edge when previewing.
Is there any config file I can tweak?

@yhatt
Copy link
Member

yhatt commented Jul 2, 2023

the preview window usually loads only part of my markdown file when I have more than ninety or one hundred pages, for example, loading only 82 or 73 of my 112 pages.

I could not figure out that's meaning. When Markdown update, the preview window will reload always after processing the whole of Markdown.

Could you describe details about you've seen, or provide a minimum reproducible example?

@franzhuang
Copy link
Author

franzhuang commented Jul 2, 2023

Thank for replying.
If the slide's content is simple, it's not easy to reproduce the situation. I usually change the font, add pictures, use bold font...etc.
For reproducing easily, let's create 300 pages slides( I usually encounter the situation when it reaches 90 or 100 pages).

  1. Create 300 pages slides.
    echo -e '---\nmarp: true\nsize: 16:9\ntheme: gaia\npaginate: true\nbackgroundColor: white\nbackgroundImage: url("https://marp.app/assets/hero-background.svg")\n---\n' > test.md && for i in {1..300}; do echo -e '![bg left:40% 80%](https://marp.app/assets/marp.svg)' >> test.md && echo -e " \n### This is a test slide titles \n- Marp\n 1. also known as the Markdown Presentation Ecosystem.\n 2. provides an intuitive experience for creating beautiful slide decks.\n 3. You only have to focus on writing your story in a Markdown document. \n \n--- " >> test.md; done

  2. npx @marp-team/marp-cli@latest test.md --html --preview

  3. Edit test.md , add some new pages and save, repeat several times.

The preview window goes blank white or load only part of my 300 pages after repeating to add several pages and save. But it syncs well if I open the generated html file with firefox or edge at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants