A focused test verifying three specific Lexical features: inline links, fenced code blocks, and the relationship embed widget.

Links, Code Blocks & Relationship Widget Test

Links

This paragraph has an external link to Payload CMS and an internal link to Notes. Links should render as clickable anchor tags, not raw markdown text.

Visit the Payload CMS docs to learn more about the CMS powering this site.

Another sentence with a GitHub link and a relative link to the homepage.


Fenced Code Block

The block below should render as a dark code block with monospace font:

JavaScript
async function fetchPosts(slug) {
  const res = await fetch();
  if (!res.ok) throw new Error("Failed to fetch");
  return res.json();
}

A second code block in Bash:

Shell
npm install
npm run dev
npm run build

Inline Code

This paragraph uses inline code mixed with normal text. Also const x = 42 and npm run build should have a pink background.


Summary

  • Links should be clickable, not raw [label](url) text
  • Fenced code blocks should render as dark pre/code blocks
  • Inline code should have pink background highlight
  • The relationship widget below should show a linked card