diff --git a/app/components/IframelyEmbed.test.tsx b/app/components/IframelyEmbed.test.tsx index 7a9c310..014291c 100644 --- a/app/components/IframelyEmbed.test.tsx +++ b/app/components/IframelyEmbed.test.tsx @@ -47,7 +47,7 @@ describe('IframelyEmbed', () => { expect(document.querySelector(`script[src="${EMBED_JS_SRC}"]`)).not.toBeNull(), ); const script = document.querySelector(`script[src="${EMBED_JS_SRC}"]`)!; - expect(script.integrity).toBe('sha256-3GwLJcK+mlckENNer3dPxN7pSjeNqIRkurShyMXvtsw='); + expect(script.integrity).toBe('sha256-D19IYg6LGSLFu7xFyGeyw0z2urLf4qXT2s5YjVAuuDU='); expect(script.crossOrigin).toBe('anonymous'); expect(script.async).toBe(true); }); diff --git a/app/components/IframelyEmbed.tsx b/app/components/IframelyEmbed.tsx index 325bd14..69c9570 100644 --- a/app/components/IframelyEmbed.tsx +++ b/app/components/IframelyEmbed.tsx @@ -6,7 +6,7 @@ import { sanitizeIframelyHtml } from '~/lib/iframely-utils'; // SRI hash pins the exact embed.js build we audited. Update with: make -C infra update-iframely-sri const EMBED_JS_SRC = 'https://cdn.iframe.ly/embed.js'; -const EMBED_JS_INTEGRITY = 'sha256-3GwLJcK+mlckENNer3dPxN7pSjeNqIRkurShyMXvtsw='; +const EMBED_JS_INTEGRITY = 'sha256-D19IYg6LGSLFu7xFyGeyw0z2urLf4qXT2s5YjVAuuDU='; function ensureEmbedJs() { const existing = document.querySelector( diff --git a/app/lib/help-content.ts b/app/lib/help-content.ts index c94a883..aba2ab6 100644 --- a/app/lib/help-content.ts +++ b/app/lib/help-content.ts @@ -3,8 +3,11 @@ // importing the route component. export const HELP_CONTENT = ` -Our editor uses Markdown plus extensions designed for writers in specialized fields. -Don't worry, the **toolbar buttons** will help you with the syntax. +Our editor supports two writing modes: Markdown and Visual. +Under the hood it uses Markdown plus extensions designed for writers in specialized fields. +Don't worry, the **toolbar buttons** will help you with the syntax in Markdown mode. +In Visual mode you can use the toolbar or type \`/\` to open the menu. + For a deeper dive please see the documentation sites for [GitHub Flavored Markdown](https://github.github.com/gfm/), [KaTeX](https://katex.org/docs/support_table.html) math notation, @@ -15,7 +18,9 @@ For a deeper dive please see the documentation sites for You can upload images to use anywhere on your article. They will be saved to your personal data server (PDS) and served through Bluesky's content delivery network (CDN) for super fast access, just like the photos in your Bluesky posts. -

+
+ +# Markdown mode tutorial ## Mentions, hashtags, and cashtags @@ -98,7 +103,7 @@ DD AA|BBA2| ## Embed web content -You can also embed web content like music, video, social media posts, or even a whole coding sandbox thanks to [Iframely](https://iframely.com/domains). +You can also embed web content like music, video, and social media posts thanks to [Iframely](https://iframely.com/domains). Just select the **Embed** button on the toolbar while writing your post. ### Social Media