Annotation Markdown Syntax
rooomProducts viewer annotations support markdown formatting using the lightweight parser. This guide covers all supported markdown features and custom tokens available for annotation descriptions.
Basic Text Formatting
Headers
Use hash symbols to create headers (1-6 levels):
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
2
3
4
5
6
You can also use underline syntax for H1 and H2:
Header 1
========
Header 2
--------
2
3
4
5
Text Styling
Format text with emphasis and strong emphasis:
*Italic text* or _italic text_
**Bold text**
~~Strikethrough text~~
2
3
Note
Triple emphasis (***bold and italic***
) is not supported.
Line Breaks and Paragraphs
Create line breaks and paragraphs:
First line
Second line (two spaces at end for line break)
New paragraph (empty line creates paragraph break)
2
3
4
Lists
Unordered Lists
Create bullet points using -
, *
, or +
:
- Item 1
- Item 2
- Item 3
2
3
Ordered Lists
Create numbered lists:
1. First item
2. Second item
3. Third item
2
3
Nested Lists
Complex nested lists may not render correctly. Keep list structures simple for best results.
Links and Images
Links
Create clickable links:
[Link text](https://example.com)
You can also use reference-style links:
[Link text][ref]
[ref]: https://example.com
2
3
Images
Embed images in annotations:

Code
Inline Code
Use backticks for inline code:
Use the `ProductViewer` API to control annotations.
Code Blocks
Create code blocks with optional language specification:
```javascript
api.createAnnotation([100, 100], {
title: 'Product Feature',
description: 'This is a **markdown** description'
});
```
2
3
4
5
6
Or simple indented code blocks:
// This is also a code block
const viewer = new ProductViewer(iframe);
2
Blockquotes
Highlight important information using >
:
> This is a blockquote
>
> It can span multiple lines
2
3
Note
Nested blockquotes may not render correctly.
Horizontal Rules
Create visual separators:
---
Iframe Modal
The iframe-modal
token creates interactive modal windows with embedded content:
{iframe-modal:Rooom Website|https://rooom.com}
{iframe-modal:Product Demo|https://demo.rooom.com/product-showcase}
2
Syntax: {iframe-modal:Display Name|URL}
- Display Name: The text that appears as a clickable link
- URL: The website or content to display in the modal
Example Usage:
Learn more about our technology: {iframe-modal:rooom Platform|https://rooom.com}
View the complete product catalog: {iframe-modal:Product Gallery|https://gallery.rooom.com}
2
3
Unsupported Features
The following standard Markdown features are not supported:
- ❌ Tables
- ❌ Task lists (checkboxes)
- ❌ Footnotes
- ❌ Definition lists
- ❌ Complex nested lists
- ❌ HTML tags (for security reasons)
- ❌ Math expressions
- ❌ Emoji shortcodes
- ❌ Triple emphasis (
***text***
) - ❌ Underline formatting