Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2023
commit 21f2c5bb325d573b8b20c51aab91b26e285dad75
9 changes: 5 additions & 4 deletions manim_slides/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
from enum import Enum
from importlib import resources
from pathlib import Path
from typing import Any, Callable, Dict, Generator, List, Optional, Type, Union
from typing import Any, Callable, Dict, List, Optional, Type, Union

import click
import cv2
import pptx
from click import Context, Parameter
from jinja2 import Template
from lxml import etree
from PIL import Image
from pydantic import (
Expand All @@ -29,8 +30,6 @@
from pydantic_core import CoreSchema, core_schema
from tqdm import tqdm

from jinja2 import Template

from . import templates
from .commons import folder_path_option, verbosity_option
from .config import PresentationConfig
Expand Down Expand Up @@ -382,7 +381,9 @@ def convert_to(self, dest: Path) -> None:
options = self.dict()
options["assets_dir"] = assets_dir

content = revealjs_template.render(file_to_data_uri=file_to_data_uri, **options)
content = revealjs_template.render(
file_to_data_uri=file_to_data_uri, **options
)

f.write(content)

Expand Down
2 changes: 1 addition & 1 deletion manim_slides/templates/revealjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
const background = Reveal.getSlideBackground(event.indexh, event.indexv),
video = background.querySelector('video'),
sources = video.querySelectorAll('source');

sources.forEach((source, i) => {
const src = source.getAttribute('src');
if(src.match(/^data:video.*;base64$/)) {
Expand Down