For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
      • Overview
      • Accordion
      • Anchor
      • Aside
      • Badge
      • Button
      • Callout
      • Card
      • Code block
      • Copy
      • Download
      • Endpoint request snippet
      • Endpoint response snippet
      • Endpoint schema snippet
      • Webhook payload snippet
      • Files
      • Frame
      • Icon
      • If
      • Indent
      • Parameter field
      • Prompt
      • Runnable endpoint
      • Schema
      • Step
      • Table
      • Tab
      • Tooltip
      • Versions
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Usage
  • Variants
  • Anchor a table
  • Anchor a code block
  • Properties
Writing contentComponents

Anchor

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Accordion

Next

Aside

The <Anchor> component creates direct links to specific content like paragraphs, tables, and code blocks. Use anchors when you need to reference non-heading content that doesn’t automatically generate its own link.

Headings automatically generate anchor links based on their text content, so you don’t need to use the anchor component for headings.

Usage

Wrap your content with the <Anchor> tag and assign it a custom anchor ID, which you can link to in URLs using the hash symbol (example: https://website.com/page#data).

This sentence has a custom anchor named #data. You can access it via this URL: https://buildwithfern.com/learn/docs/writing-content/components/anchor#data.

Markdown
1<Anchor id="data">This sentence has a custom anchor named `#data`</Anchor>. You can access it via this URL: https://buildwithfern.com/learn/docs/writing-content/components/anchor#data.

Variants

Anchor a table

EndpointMethodDescription
/plantsGETRetrieve all plants
/plants/:idGETRetrieve a specific plant
/plantsPOSTCreate a new plant

You can link directly to the API endpoints table.

Markdown
1<Anchor id="api-endpoints">
2
3| Endpoint | Method | Description |
4|----------|--------|-------------|
5| `/plants` | GET | Retrieve all plants |
6| `/plants/:id` | GET | Retrieve a specific plant |
7| `/plants` | POST | Create a new plant |
8
9</Anchor>
10
11You can link directly to the [API endpoints table](#api-endpoints).

Anchor a code block

1def water_plant(plant_id, amount):
2 """Water a plant with specified amount"""
3 headers = {"Authorization": f"Bearer {api_key}"}
4 return requests.post(f"https://api.example.com/plants/{plant_id}/water",
5 json={"amount": amount},
6 headers=headers)

Reference the watering code example in your implementation.

Markdown
1<Anchor id="example-code">
2
3```python
4def water_plant(plant_id, amount):
5 """Water a plant with specified amount"""
6 headers = {"Authorization": f"Bearer {api_key}"}
7 return requests.post(f"https://api.example.com/plants/{plant_id}/water",
8 json={"amount": amount},
9 headers=headers)
10```
11
12</Anchor>
13
14Reference the [watering code example](#example-code) in your implementation.

Properties

id
stringRequired

The anchor ID for this content. Reference it in URLs using the hash (example: #data)