aboutsummaryrefslogtreecommitdiffstats
path: root/godocs.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-04-10 15:32:16 +0200
committerEddy Pedroni <epedroni@pm.me>2025-04-10 15:32:16 +0200
commit06740137f73aac531b028fac3228369643f7b90f (patch)
tree1c497803b4a0e04a4811799b81d648504a37ce0a /godocs.py
parent0d9452a064d33e826e876755b6f403617c36bc32 (diff)
Audio tag processing
Diffstat (limited to 'godocs.py')
-rw-r--r--godocs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/godocs.py b/godocs.py
index 8cdc8f0..b58bbd4 100644
--- a/godocs.py
+++ b/godocs.py
@@ -54,8 +54,8 @@ def renderEntries(page: Page) -> Iterator[str]:
return f"<audio controls><source src=\"{FILES_URL}/{match.group(1)}\">Your browser does not support the audio element.</audio>"
with_videos = re.sub(VIDEO_REGEX, videoTag, raw)
- #re.sub(AUDIO_REGEX, audioTag, raw)
- yield markdown(with_videos, extras=["fenced-code-blocks", "strike", "tables"])
+ with_audio = re.sub(AUDIO_REGEX, audioTag, with_videos)
+ yield markdown(with_audio, extras=["fenced-code-blocks", "strike", "tables"])
def renderPageCallback(template_file: Path, stylesheet_url: str) -> Callable[[Page, str], None]:
""" Callback to process the provided page metadata and output the final page to the filesystem """