From 89879288783da2fce1a8d5522c10cca370118a2e Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 1 Jul 2020 22:13:58 +1000 Subject: [PATCH] Added video support to markdown and added videos to map and drawing docs --- src/components/Markdown.js | 16 +++++++- src/docs/assets/CustomMaps.mp4 | Bin 0 -> 266954 bytes src/docs/assets/CustomMapsAdvanced.jpg | Bin 0 -> 88933 bytes src/docs/assets/DefaultMaps.mp4 | Bin 0 -> 106508 bytes src/docs/assets/ResetingAndRemovingMaps.mp4 | Bin 0 -> 111855 bytes src/docs/assets/UsingDrawing.mp4 | Bin 0 -> 222314 bytes src/docs/assets/index.js | 10 +++++ src/docs/howTo/sharingMaps.md | 43 ++++++++++++-------- src/docs/howTo/usingDrawing.md | 2 + src/routes/HowTo.js | 22 +++++----- 10 files changed, 64 insertions(+), 29 deletions(-) create mode 100644 src/docs/assets/CustomMaps.mp4 create mode 100644 src/docs/assets/CustomMapsAdvanced.jpg create mode 100644 src/docs/assets/DefaultMaps.mp4 create mode 100644 src/docs/assets/ResetingAndRemovingMaps.mp4 create mode 100644 src/docs/assets/UsingDrawing.mp4 diff --git a/src/components/Markdown.js b/src/components/Markdown.js index c60b7bd..99604dc 100644 --- a/src/components/Markdown.js +++ b/src/components/Markdown.js @@ -27,6 +27,20 @@ function Heading({ level, ...props }) { } function Image(props) { + if (props.src.endsWith(".mp4")) { + return ( +