Skip to content

Markdown

Learn how to use markdown features and formatting options in the Six Starlight Theme documentation system.

Markdown is the foundation of content creation in the Six Starlight Theme documentation system. It provides a simple, readable syntax for creating rich, formatted content including text, links, images, tables, and more. The theme enhances standard markdown with additional features and styling to create professional, accessible documentation.

Markdown doesn’t use traditional props - it’s a markup language with specific syntax rules.

ElementSyntaxExample
Heading# Text# Heading 1
Bold**text****Bold text**
Italic*text**Italic text*
Link[text](url)[Link](https://example.com)
Image![alt](url)![Alt text](image.jpg)
Code`code``inline code`
List- item- List item

Markdown supports six levels of headings for creating document structure.

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Markdown provides simple syntax for basic text formatting that’s easy to read and write.

**Bold text** makes important information stand out.
_Italic text_ provides subtle emphasis for terms or concepts.
**_Bold and italic_** combines both styles for maximum emphasis.
~~Strikethrough text~~ shows deprecated or outdated information.

Bold text makes important information stand out.

Italic text provides subtle emphasis for terms or concepts.

Bold and italic combines both styles for maximum emphasis.

Strikethrough text shows deprecated or outdated information.


- First item in the list
- Second item with **bold text**
- Third item with _italic text_
- Nested item
- Sub-item one
- Sub-item two
- Deeply nested item
  • First item in the list
  • Second item with bold text
  • Third item with italic text
  • Nested item
    • Sub-item one
    • Sub-item two
      • Deeply nested item
1. First step in the process
2. Second step with additional details
3. Third step that includes:
- A sub-step
- Another sub-step
4. Final step to complete the process
  1. First step in the process
  2. Second step with additional details
  3. Third step that includes:
    • A sub-step
    • Another sub-step
  4. Final step to complete the process
- [x] Completed task
- [ ] Pending task
- [x] Another completed task
- [ ] Task with **bold text**
- [ ] Task with _italic text_
  • Completed task
  • Pending task
  • Another completed task
  • Task with bold text
  • Task with italic text

[Link to documentation](#) - Basic link with descriptive text.
[External link](https://example.com) - Link to external resources.
[Link with title](https://example.com 'Hover text') - Link with hover tooltip.

Link to documentation - Basic link with descriptive text.

External link - Link to external resources.

Link with title - Link with hover tooltip.

[Reference link][ref1] - Link using a reference.
[Another reference][ref2] - Multiple references on the same page.
[ref1]: https://example.com 'First reference'
[ref2]: https://example.com 'Second reference'

Reference link - Link using a reference.

Another reference - Multiple references on the same page.


| Feature | Status | Description |
| ------------------- | ------ | ----------------------- |
| Markdown | ✅ | Full markdown support |
| Syntax highlighting | ✅ | Code block highlighting |
| Responsive design | ✅ | Mobile-friendly layouts |
| Custom components | ✅ | Extended functionality |
FeatureStatusDescription
MarkdownFull markdown support
Syntax highlightingCode block highlighting
Responsive designMobile-friendly layouts
Custom componentsExtended functionality
| Left-aligned | Center-aligned | Right-aligned |
| :----------- | :------------: | ------------: |
| Content | Content | Content |
| More content | More content | More content |
| Even more | Even more | Even more |
Left-alignedCenter-alignedRight-aligned
ContentContentContent
More contentMore contentMore content
Even moreEven moreEven more

> This is a basic blockquote that highlights important information or quotes from external sources.

This is a basic blockquote that highlights important information or quotes from external sources.

> Main blockquote with important information.
>
> > Nested blockquote for additional context.
> >
> > > Deeply nested quote for complex discussions.

Main blockquote with important information.

Nested blockquote for additional context.

Deeply nested quote for complex discussions.

> The best way to predict the future is to invent it.
>
> — Alan Kay

The best way to predict the future is to invent it.

— Alan Kay


This theme supports `inline code` formatting for short snippets. You can reference files like `astro.config.mjs` or use technical terms like `npm install` inline.

This theme supports inline code formatting for short snippets. You can reference files like astro.config.mjs or use technical terms like npm install inline.

```js
// JavaScript example
function greetUser(name) {
return `Hello, ${name}! Welcome to Six Starlight Theme.`;
}
// Usage
const message = greetUser('Developer');
console.log(message);
```
// JavaScript example
function greetUser(name) {
return `Hello, ${name}! Welcome to Six Starlight Theme.`
}
// Usage
const message = greetUser('Developer')
console.log(message)

Use horizontal rules to separate content sections:
---
Above is a horizontal rule that creates visual separation.
---
Below is another section of content.

Use horizontal rules to separate content sections:


Above is a horizontal rule that creates visual separation.


Below is another section of content.

Here's a sentence with a footnote[^1].
[^1]: This is the footnote content that appears at the bottom of the page.

Here’s a sentence with a footnote1.

\*This text is not italic\*
\`This is not inline code\`
\[This is not a link\]

*This text is not italic* `This is not inline code` [This is not a link]


  • Use descriptive link text instead of generic phrases
  • Keep headings logical and hierarchical
  • Use tables for structured data, not layout
  • Include alt text for all images
  • Use code blocks for code examples
  • Keep line length reasonable for readability
  • Test markdown rendering on different devices

  • Don’t use markdown for layout - Use CSS for positioning and styling
  • Don’t create overly complex nested structures - Keep content organized and readable
  • Don’t use headings for styling - Use them for document structure
  • Don’t forget alt text for images - This is important for accessibility
  • Don’t use excessive formatting - Keep content clean and professional
  • Don’t mix different heading levels randomly - Maintain logical hierarchy
  • Don’t use markdown for interactive elements - Use proper components instead
  1. This is the footnote content that appears at the bottom of the page.