From d285f676b70de19a7e5ae7509a0bf2bb4f48a90a Mon Sep 17 00:00:00 2001 From: Matt Reimer Date: Wed, 13 Dec 2023 15:22:42 -0800 Subject: [PATCH] youtube and images can now have captions and tweaking inline code --- .yarn/versions/772fdd83.yml | 2 + sites/devsite/content/page/demo.mdx | 8 +-- theme/package.json | 2 +- theme/src/components/MDXErrorBoundary.tsx | 1 - theme/src/components/MDXRender.tsx | 22 ++++++++- theme/src/components/RSStaticImage.tsx | 2 +- theme/src/components/YoutubeEmbed.tsx | 60 +++++++++++++---------- 7 files changed, 63 insertions(+), 34 deletions(-) create mode 100644 .yarn/versions/772fdd83.yml diff --git a/.yarn/versions/772fdd83.yml b/.yarn/versions/772fdd83.yml new file mode 100644 index 0000000..24b103f --- /dev/null +++ b/.yarn/versions/772fdd83.yml @@ -0,0 +1,2 @@ +undecided: + - "@riverscapes/developer-site" diff --git a/sites/devsite/content/page/demo.mdx b/sites/devsite/content/page/demo.mdx index c90fee9..e44030d 100644 --- a/sites/devsite/content/page/demo.mdx +++ b/sites/devsite/content/page/demo.mdx @@ -205,7 +205,7 @@ If you need a bit more control you can use the `` HTML syntax. ``` -- **No Wrapping (advanced mode)**: You can add a `noWrap` attribute to remove all the fitting, centering and img wrapping. If you use this you will be left with the equivalent of a single unwrapped `` tag. As you can see though, this is not necessarily going to play nice with our theme. +- **No Wrapping (advanced mode)**: You can add a `noWrap` attribute to remove all the fitting, centering and img wrapping. If you use this you will be left with the equivalent of a single unwrapped `` tag. As you can see though, this is not necessarily going to play nice with our theme. ***NOTE: IF YOU USE NOWRAP IT WILL IGNORE THE `caption` ATTRIBUTE.*** ```typescript @@ -287,13 +287,13 @@ Paragraph3 Elit labore aliquip exercitation dolor voluptate reprehenderit occaec ## Youtube embeds -We have a custom component for youtube embedding +We have a custom component for youtube embedding. There is an optional `caption` attribute that will add a caption to the video. ```tsx - + ``` - + You can also embed using the `