diff --git a/src/components/Markdown.js b/src/components/Markdown.js index 12d0416..1d341eb 100644 --- a/src/components/Markdown.js +++ b/src/components/Markdown.js @@ -1,9 +1,15 @@ import React from "react"; -import { Text, Image as UIImage, Link, Message } from "theme-ui"; +import { + Text, + Image as UIImage, + Link as UILink, + Message, + Embed, +} from "theme-ui"; import ReactMarkdown from "react-markdown"; function Paragraph(props) { - return ; + return ; } function Heading({ level, ...props }) { @@ -93,6 +99,16 @@ function TableCell({ children }) { ); } +function Link({ href, children }) { + const linkText = children[0].props.value; + if (linkText === "embed:") { + return ; + } else { + console.log(href); + return {children}; + } +} + function Markdown({ source }) { const renderers = { paragraph: Paragraph, diff --git a/src/docs/releaseNotes/v1.1.0.md b/src/docs/releaseNotes/v1.1.0.md index e68a7ed..65827c5 100644 --- a/src/docs/releaseNotes/v1.1.0.md +++ b/src/docs/releaseNotes/v1.1.0.md @@ -1,3 +1,5 @@ +[embed:](https://www.youtube.com/embed/aOTvQOrpNo4) + ## Major Changes ### Drawing @@ -19,3 +21,7 @@ To access options for the brush with the brush tool selected click it once more - With the added colours for map drawing the token status rings have more colour options [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/g5d00w/beta_v110_release_drawing_and_fog_of_war/) + +--- + +Apr 22 2020 diff --git a/src/docs/releaseNotes/v1.2.0.md b/src/docs/releaseNotes/v1.2.0.md index a43a317..010c388 100644 --- a/src/docs/releaseNotes/v1.2.0.md +++ b/src/docs/releaseNotes/v1.2.0.md @@ -1,3 +1,5 @@ +[embed:](https://www.youtube.com/embed/IhSS24d4zlM) + ## Major Changes ### Saved Maps @@ -34,3 +36,7 @@ The third tool is a new shape tool, hopefully this should be more precise then t - Fixed a bug that would prevent maps from being sent to others, hopefully this should fix blank screen issues for some. I'm still trying to track these issues down but this should help some cases. [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gavu2g/beta_v120_release_saved_maps_and_reworked_drawing/) + +--- + +May 01 2020 diff --git a/src/docs/releaseNotes/v1.2.1.md b/src/docs/releaseNotes/v1.2.1.md index d461e88..072796e 100644 --- a/src/docs/releaseNotes/v1.2.1.md +++ b/src/docs/releaseNotes/v1.2.1.md @@ -6,3 +6,7 @@ - Added a new release notes page on the site which shows all the release notes in one place. [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/ggyiz8/beta_v121_release_connection_issues_and_map/) + +--- + +May 11 2020 diff --git a/src/docs/releaseNotes/v1.3.0.md b/src/docs/releaseNotes/v1.3.0.md index 7baf771..836902e 100644 --- a/src/docs/releaseNotes/v1.3.0.md +++ b/src/docs/releaseNotes/v1.3.0.md @@ -1,3 +1,5 @@ +[embed:](https://www.youtube.com/embed/Y7sEgoopz4E) + ## Major Changes ### Dice Rolling @@ -37,3 +39,7 @@ Map, tokens, drawing and fog have all been unified into one system which leads t - A new visual display and method for deleting tokens from the map. [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gshfrz/beta_v130_release_dice_rolling_and_custom_tokens/) + +--- + +May 29 2020 diff --git a/src/docs/releaseNotes/v1.3.1.md b/src/docs/releaseNotes/v1.3.1.md index 1a88308..a3ac353 100644 --- a/src/docs/releaseNotes/v1.3.1.md +++ b/src/docs/releaseNotes/v1.3.1.md @@ -7,3 +7,7 @@ - Added the ability to erase multiple shapes at a time by dragging over a shape with the eraser tool. This works for fog erase and toggle as well. [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gtvwh9/beta_v131_release_bug_fixes_and_map_grids/) + +--- + +Jun 01 2020 diff --git a/src/docs/releaseNotes/v1.3.2.md b/src/docs/releaseNotes/v1.3.2.md index d6ad469..c0f3109 100644 --- a/src/docs/releaseNotes/v1.3.2.md +++ b/src/docs/releaseNotes/v1.3.2.md @@ -3,3 +3,7 @@ - Fixed a bug when loading a large amount of stored maps. [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/gy3st9/beta_v132_release_bug_fix/) + +--- + +Jun 07 2020 diff --git a/src/docs/releaseNotes/v1.3.3.md b/src/docs/releaseNotes/v1.3.3.md index dca587e..6f4a160 100644 --- a/src/docs/releaseNotes/v1.3.3.md +++ b/src/docs/releaseNotes/v1.3.3.md @@ -5,3 +5,7 @@ [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/ha301n/beta_v133_release_bug_fix_and_auto_reconnect/) [Twitter](https://twitter.com/OwlbearRodeo/status/1272868031014727680?s=20) + +--- + +Jun 17 2020 diff --git a/src/docs/releaseNotes/v1.4.0.md b/src/docs/releaseNotes/v1.4.0.md index 64ce08c..aaffc62 100644 --- a/src/docs/releaseNotes/v1.4.0.md +++ b/src/docs/releaseNotes/v1.4.0.md @@ -1,3 +1,5 @@ +[embed:](https://www.youtube.com/embed/vtNpj-449B8) + ## Major Changes ### Reworked Fog Tools @@ -69,3 +71,7 @@ When interacting with the map we now support keyboard shortcuts for quickly swit [Reddit](https://www.reddit.com/r/OwlbearRodeo/comments/hhbezp/beta_v140_release_new_fog_tools_and_shortcuts/) [Twitter](https://twitter.com/OwlbearRodeo/status/1277169108958629888?s=20) + +--- + +Jun 29 2020